Hi,

I have a camel (2.15) route where i want to log an audit message when the
route is successfull or log an  an exception message when an exception
occurs in the route.
I thought i could use an onCompletion and check isFailed() on the exchange,
but the strange thing is : the exception seems to be null (or handled?).
When an exception occurs in the to endpoint (e.g.
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
store file), it just logs the audit and not the failure.


A workaround is to to use an onException and onCompletion together like
below, but this seems very bloated to me.




--
View this message in context: 
http://camel.465427.n5.nabble.com/onCompletion-exchange-isFailed-does-not-see-exception-tp5771110.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to