You need to stop the consumer because the FTP consumer is schedule
based and will poll using a timer.

So you can stop the consumer template after usage, which should stop
the consumers.
You may also be able to set the cache size of the consumer template to
0 (i dont know if that makes it auto stop the consumer after use, but
I would assume it could do that)



On Tue, Sep 14, 2010 at 3:04 PM, Andreas A. <andreasasm...@gmail.com> wrote:
>
> The same thing happens in another method I use to enrich a message with a
> single specific file:
>
> String ftpsEndpoint =
> "ftps:{{ftp.address}}{{ftp.path.out}}?delete=true&amp;username={{ftp.username}}&password={{ftp.password}}&fileName=myFileName"
> Exchange str = consumer.receive(ftpsEndpoint);
>
> Works fine, except FTP keeps getting polled (nothing gets downloaded) it
> just does LIST forever.
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-do-YOU-handle-scheduling-tp2838886p2839093.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to