You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Monisha <mo...@amadeus.com> on 2013/09/05 08:12:27 UTC

Camel SFTP down handling

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.

Re: Camel SFTP down handling

Posted by Claus Ibsen <cl...@gmail.com>.
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 <mo...@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: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen