Versions Compared

Key

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

...

Configuring ReliveryPolicy (redeliver options)

RedeliveryPolicy requires to use the Dead Letter Channel as the Error Handler.

...

However if you want to customize any methods on the RedeliveryPolicy object, you can do this via the fluent API. So lets retry in case of ValidationException up till two times.

...

You can customize any of the RedeliveryPolicy so we can for instance set a different delay of 5000 millis:

...

Available in Camel 1.4

The default ExceptionPolicyStrategy in Camel should be sufficient in nearly all use-cases (see section How does Camel select which clause should handle a given thrown Exception). However if you need to use your own this can be configued as the sample below illustrates:

...