camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Babak Vahdat <>
Subject Re: ExceptionHandler in a ftp Route
Date Thu, 02 Feb 2012 21:09:10 GMT

errorHandlerRef gets invoked when the routing of a given exchange fails,
however the ExceptionHandler on GenericFileOnCompletion handles exceptions
encountered *specific* to the file component and it's derivatives.

The default ExceptionHandler Impl is LoggingExceptionHandler which on it's
turn *only* logs the exception & continues, that's it! If you want to react
differently on an encountered exception you can inject your own custom
ExceptionHandler (for example into a FileConsumer). The other option is to
provide your own Synchronization [1] implementation and do:


For example from inside a Processor inside your route.

BTW just in case of your interest there's another thread [2] about this I
started while ago however without any answer :-)



View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message