On Wed, Sep 5, 2012 at 6:56 AM, vishal1981
<vishal.changr...@ericsson.com> wrote:
> Hi,
> I am implementing the ExceptionHandler to catch exceptions that happen while
> fetching a file remotely via FTP (e.g. IOExceptions etc.).
> In my custom ExceptionHandler I need a way to figure out which endpoint/FTP
> URI failed since I have more than one.
> The ExceptionHandler method -handleException which gets invoked only gets
> the exception and not the originating FTP endpoint. How can I possibly find
> that out. I have an exchange header but I guess the exchange is not even
> constructed if the first endpoint fails.
> The Exception handler is an Stateless session bean and will be shared across
> several routes.
>

I have logged a ticket to improve the ExceptionHandler in a future Camel release
https://issues.apache.org/jira/browse/CAMEL-5587

> I am using 2.9 release.
> Thanks in advace,
> -v-
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
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