Hi,

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.

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-error-handling-tp5715132p5715133.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to