Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
{snippet:id=e2|lang=java|url=activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/builder/ErrorHandlerTest.java}

Spring based configuration

In Camel 1.4 the error handler can be configured as a spring bean and referenced as either:

  • global (the camelContext tag)
  • per route (the route tag)
  • per policy (the policy tag)

The error handler is configured with the errorHandlerRef attribute.
See Transactional Client for examples.

Default Error Handler

The default error handler is the Dead Letter Channel which is automatically configured for you. You can then configure the specific dead letter endpoint to use either for an entire rule base or a specific rule as shown above. For example

...