Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.

How do I handle failures when consuming for example from a FTP server

When you do a route such as

from("ftp://foo@somesever.com?password=secret").to("bean:logic?method=doSomething");

And there is a failure with connecting to the remote FTP server. The existing Error handling in Camel is based on when a message is being routed.
In this case the error occurs before a message has been initiated and routed. So how can I control the error handling?

The FTP component have a few options (maximumReconnectAttempts, reconnectDelay to control number of retries and delay in between.

But you can also plugin your own implementation and determine what to do using the pollStrategy option which has more documentation here.
Notice that the option pollStrategy applies for all consumers which is a ScheduledPollConsumer consumer. The page lists those.

See also

© 2004-2015 The Apache Software Foundation.
Apache Camel, Camel, Apache, the Apache feather logo, and the Apache Camel project logo are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
Graphic Design By Hiram