I have setup a camel routing with an errorHandler and redelivery policy configured as below
<errorHandler id="apiRetryHandler" type="DefaultErrorHandler">
<redeliveryPolicy maximumRedeliveries="5" redeliveryDelay="30000"
backOffMultiplier="5" useExponentialBackOff="true"
useCollisionAvoidance="true"/><errorHandler>
I am expecting the following outcome
On the first failure, when I receive an exception from the system, the handler kicks in the following order
Please advice what I am doing wrong here.
There is a maximum redelivery delay of 60 seconds [1]. You need to set that to a higher value. Also its is not recommended to use long delay values, eg 12.5 minutes is a very long time.
<errorHandler id="apiRetryHandler" type="DefaultErrorHandler">
<redeliveryPolicy maximumRedeliveryDelay="30min" maximumRedeliveries="5" redeliveryDelay="30sec"
backOffMultiplier="5" useExponentialBackOff="true"
useCollisionAvoidance="true"/><errorHandler>