On Tue, Sep 18, 2012 at 2:08 PM, Hilde <[email protected]> wrote:
> Hello Claus!
>
> Sorry for answering late.
>
> Yes, I have enabled the option /throwExceptionOnConnectFailed=true/
> Is that ok?
>

Yeah that would be needed to allow the bridge error handler to react.
You may also need to set maximumReconnectAttempts=0, so reconnection
is not attempted.

And you would need to implement a custom PollingConsumerPollStrategy,
where you in the rollback throw the caused exception.
Otherwise the bridge error handler cannot react.

We may consider allowing to make this out of the box if you have
bridgeErrorHandler enabled, as then the caused exception will routed
in Camel and allow onException to trigger.


> Cheers
> Hilde
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/FTP-Consumer-Handle-UnknowHostException-tp5719362p5719523.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to