THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<onException> <exception>com.mycompany.ValidationException</exception> <redeliveryPolicy maximumRedeliveries="2" delay="5000"/> </onException> |
.h4 Point of entry for redelivery attempts
All redelivery attempts start at the point of the failure. So the route:
Code Block |
---|
.onException(ConnectException.class)
.from("direct:start")
.process("processor1")
.process("processor2") // <--- throws a ConnectException
.to("mock:theEnd")
|
Will retry from processor2 not the complete route.
Reusing ReliveryPolicy
Available as of Camel 1.5.1 or later
You can reference a RedeliveryPolicy
so you can reuse existing configurations and use standard spring bean style configuration that supports property placeholders.
...