Versions Compared

Key

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

...

Camel uses a strategy to resolve how exceptions should be handled.

Using try ... catch ... finally

See Try Catch Finally

Using Interceptors

You can register interceptors on a RouteBuilder so that they are inherited by all child routes. You can also use the DSL itself to write interceptors...

...

Code Block
// lets log messages from gold customers
intercept(xpath("/customer[@type='gold']").to("log:customer").proceed();

from("seda:foo").to("seda:bar");

Changes in Camel 1.4

In Camel 1.4 proceed() is now default, so the examples above can be written as:

...