Redelivery Policy

Detail on when messages are redelivered to a client can be found in the Message Redelivery and DLQ Handling section.

You can configure the RedeliveryPolicy on your ActiveMQConnectionFactory or ActiveMQConnection to customize exactly how you want the redelivery to work.

You can use Java code, Spring or the Connection Configuration URI to customise this.

Available Properties

Property Default Value Description
collisionAvoidanceFactor 0.15 The percentage of range of collision avoidance if enabled
maximumRedeliveries 6 Sets the maximum number of times a message will be redelivered before it is considered a poisoned pill and returned to the broker so it can go to a Dead Letter Queue (use value -1 to define infinite number of redeliveries)
initialRedeliveryDelay 1000L The initial redelivery delay in milliseconds
useCollisionAvoidance false Should the redelivery policy use collision avoidance
useExponentialBackOff false Should exponential back-off be used (i.e. to exponentially increase the timeout)
backOffMultiplier 5 The back-off multiplier
Graphic Design By Hiram