Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: tip to use excption clause (onException)

...

Note
titleTransaction

If the route is transactional then the Dead Letter Channel is disabled. The exchange.isTransacted() is used to determine if an Exchange is transacted or not.
So if you are using transacted routes then you should configure the TransactionErrorHandler instread of DeadLetterChannel. See Transactional Client for further details and samples.

Tip
titleException Clause

Using Error Handler combined with Exception Clause is a very powerful ally. We encourage end-users to use this combination in your error handling strategies. See samples and Exception Clause.

These error handlers can be applied in the DSL to an entire set of rules or a specific routing rule as we show in the next examples. Error handling rules are inherited on each routing rule within a single RouteBuilder

...

As of Camel 1.4 you can configure the ExceptionPolicyStrategy as this example shows. Notice that we use [ Exception Clause to handle known exceptions being thrown.

...