Hi Ashwin,

Thanks for the tip.

If I have access to the Consumer, can I just call
`consumer.getExceptionHandler().handleException(new
ConnectException(...))`?

Alex


On 15 February 2012 18:00, Ashwin Karpe <aka...@fusesource.com> wrote:
> Hi,
>
> Since the Camel endpoint has no way of knowing whether the service is up
> other than a ConnectException being thrown, you would need to trap this
> Exception and then do whatever you need to do through the Exception handling
> mechanism.
>
> You could set up a Processor in the exception handling route that brings
> down all the associated routes when it catches a ConnectException.
>
> Hope this helps.
>
> Cheers,
>
> Ashwin...
>
>
> -----
> ---------------------------------------------------------
> Ashwin Karpe
> Apache Camel Committer & Sr Principal Consultant
> FUSESource (a Progress Software Corporation subsidiary)
> http://fusesource.com
>
> Blog: http://opensourceknowledge.blogspot.com
> ---------------------------------------------------------
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Handling-Endpoint-failure-tp5486157p5486283.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to