Hi, Camel friends.

  I am trying to poll files from a remote SFTP server. I am currently
setting consumer.bridgeErrorHandler=true at the from URI. When it cannot
connect the server, exception is thrown and caught by error handler. If I do
not set consumer.bridgeErrorHandler=true, then when an error is thrown, the
consumer will never stop polling as the exception is never handled.  So if
not able to connect to remote server, I want to implement below logic:

First retry 5 times,  if the connection is not still successful after
retrying 5 times, I want exception to be caught and handled.


Thanks!




--
View this message in context: 
http://camel.465427.n5.nabble.com/Consumer-Polling-Retry-Issue-tp5764708.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to