You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by roughrotter <ma...@gmail.com> on 2012/01/19 16:43:25 UTC

camel-ftp scheduling and limit polling

Hello everyone, 
i need to configure an ftp route that allow me to:

schedule starting, then dowload all file present on ftp server, if no file
present polling only for a limited times eg. every 5 seconds for an hour,
than if no file downloaded stop polling, stop route and send an email of
report.

I had used the quartz component to start the route and i can stop the route
processing the destination endpoint, but i cannot stop the consumer when
polling...

Can anyone help me.

Regards.

Marcello.

--
View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-scheduling-and-limit-polling-tp5158013p5158013.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-ftp scheduling and limit polling

Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi,

the Leader-Rider has already answered this question of yours [1] by another
thread.

[1]
http://camel.465427.n5.nabble.com/What-s-best-practice-for-running-Camel-2-9-0-in-JBOSS-5-X-tp5138775p5145054.html

Babak

--
View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-scheduling-and-limit-polling-tp5158013p5158651.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-ftp scheduling and limit polling

Posted by roughrotter <ma...@gmail.com>.
i found the property sendEmptyMessageWhenIdle that can allow me to check in
process if no more file are present and stop route by it self.

But in that way i have to develop a custom pollingStrategy?





--
View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-scheduling-and-limit-polling-tp5158013p5158344.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-ftp scheduling and limit polling

Posted by roughrotter <ma...@gmail.com>.
i try to find how to limit polling but i can't find nothing about...

--
View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-scheduling-and-limit-polling-tp5158013p5158303.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-ftp scheduling and limit polling

Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi,

maybe digging into the unit-tests, like in [1], could give you an idea how
to do that.

[1]
https://svn.apache.org/repos/asf/camel/trunk/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote

Babak

--
View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-scheduling-and-limit-polling-tp5158013p5158152.html
Sent from the Camel - Users mailing list archive at Nabble.com.