Dear all, I'm using ActiveMQ 5.9 within JBoss EAP 6.4 with this delivery policy configured at the 'activemq.xml':
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" schedulerSupport="true"> ... <plugins> <redeliveryPlugin fallbackToDeadLetter="true" sendToDlqIfMaxRetriesExceeded="true"> <redeliveryPolicyMap> <redeliveryPolicyMap> <redeliveryPolicyEntries> <redeliveryPolicy queue="TestQueue" maximumRedeliveries="3" redeliveryDelay="10000"/> </redeliveryPolicyEntries> <defaultEntry> <redeliveryPolicy maximumRedeliveries="5" initialRedeliveryDelay="5000" redeliveryDelay="10000"/> </defaultEntry> </redeliveryPolicyMap> </redeliveryPolicyMap> </redeliveryPlugin> </plugins> ... </broker> I have a 'TestQueueMDB' deployed consuming from the queue, when I put a message the behaviour isn't the expected, it cosumes 22 times the message with these redelivery counters instead of consume it 4 times (the first one and the 3 redeliveries): Received Message:ActiveMQTextMessage [...] redeliveryCounter = 0 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 1 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 2 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 3 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 4 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 5 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 6 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 1 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 2 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 3 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 4 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 5 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 6 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 2 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 3 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 4 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 5 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 6 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 3 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 4 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 5 [...] Received Message:ActiveMQTextMessage [...] redeliveryCounter = 6 [...] Any idea of how to solve this issue? Best regards and thanks. eletxi -- View this message in context: http://activemq.2283324.n4.nabble.com/Redeliveries-configuration-not-working-as-expected-tp4721909.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.