Hi all,

I am having a problem with redelivery of messages after transaction
rollback. I am using XA in combination with Springs
DefaultMessageListenerContainer and have a simple test case in which the
MessageListener throws an IllegalStateException which triggers a transaction
rollback. After that, the message is redelivered, but unfortunately not as
many times as my redelivery policy specifies. I am using the following
settings:

- maximumRedeliveries=3
- initialRedeliveryDelay=10

If I am not mistaken this means I should receive the message 4 times (once
initially and then three times redelivered), but I only get it three times.
When I log the messages I receive prior to throwing an ISE, I see the
following "inconsistency" with the redeliveryCounter: the initial message as
a counter value of 0, the first redelivery message has a counter value of 2
and the second redelivery message has a counter value of 4. After that, I do
not receive an additional message. Am I loosing messages or is the counter
not updated correctly?

Regards

Sven
-- 
View this message in context: 
http://www.nabble.com/redeliveryCounter-not-updated-correctly-using-ActiveMQ-5.0.0-tp15480323s2354p15480323.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to