December 2013
Intermediate to advanced
424 pages
9h 7m
English
Camel allows you to register a Processor instance with the redelivery policy that can change any part of the message and its headers before each redelivery attempt. This can help if there are ways you can tweak the message in response to certain errors.
This recipe will show you how to change the contents of the exchange during each redelivery attempt.
The Java code for this recipe is located in the org.camelcookbook.error.retrycustom package. The Spring XML files are located under src/main/resources/META-INF/spring and prefixed with retrycustom.
Configure an error handler for redelivering a message, and set its onRedelivery option to reference a Camel processer that you implement.
Read now
Unlock full access