Hi,

I have set up redelivery policy in Spring for ActiveMQ but it seems like it
doesn't work when I tested it.  The rolledback transaction still caused the
message to be redelivered using the default settings e.g.
initialRedeliveryDelay=1000 and so on.  Does this actually ever worked or is
there something wrong with my setup?

<bean id="xaConnectionFactory"
class="org.apache.activemq.ActiveMQXAConnectionFactory">
        <property name="brokerURL" value="tcp://localhost:61616"/>
        <property name="userName" value=""/>
        <property name="password" value=""/>
        <property name="redeliveryPolicy" ref="redeliveryPolicy" />
</bean>
        
<bean id="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy">
        <property name="maximumRedeliveries" value="6"/>
        <property name="initialRedeliveryDelay" value="5000"/>
        <property name="useCollisionAvoidance" value="true"/>
        <property name="useExponentialBackOff" value="true"/>
        <property name="backOffMultiplier" value="2"/>
</bean>

Thanks.
-- 
View this message in context: 
http://old.nabble.com/redeliveryPolicy-not-working-for-ActiveMQ-5.3.2-tp29182654p29182654.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to