camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Karpe <>
Subject Re: Camel - error handling
Date Tue, 26 Jun 2012 22:24:43 GMT

The exception handlers are meant to be used the same way as if you were
writing code. It is not possible to offer explicit best practices since
every use case is different. You would need to be explicit about your routes
or use case along with what you are trying to get accomplished.

In general, however, you can have try-catch-finally or on-exception handlers
for route specific exception handling. And global/scoped exception handlers
for catch-all exceptions. Exception handlers are scoped and can cascade to
global handlers if not handled locally.

Dead letter or Transacted exception handlers are meant to offer specific
kinds of treatment/handling to exceptions being thrown (i.e move to a DLQ or
replace back on the input queue for a retry etc). 
Hope this helps.



Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary) 

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

View raw message