The file/ftp components also supports the bridgeErrorHandler option. So you can use this.
There is also this guy: http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/impl/LimitedPollingConsumerPollStrategy.html On Thu, Sep 5, 2013 at 8:12 AM, Monisha <monisha.sur...@amadeus.com> wrote: > Hi, > I have a small camel route having SFTP location as input endpoint. I want to > handle the scenario when SFTP is down. Since SFTP does not extend > DefaultConsumer, I cannot use the option "consumer.bridgeErrorHandler=true". > For now, when SFTP is down or the credentials given are incorrect, the route > does not throw any exception, it just keeps on retrying and logging the > error message. But I want to shut down the route if the route is not able to > connect to an SFTP location. Please tell me how can I achieve this. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-SFTP-down-handling-tp5738721.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen