Problem solved, I found out that we can use allowRedeliveryWhileStopping() on the error handler to force shutdown of a route even with pending exchanges. So now it works nicely.
Nuno -- View this message in context: http://camel.465427.n5.nabble.com/Custom-logging-of-exceptions-by-file-component-tp5735152p5735188.html Sent from the Camel - Users mailing list archive at Nabble.com.