You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Dege Ratak <de...@pointclickcare.com> on 2006/01/11 16:17:42 UTC

XA Transactions and Redelivery -- known issues?

Using ActiveMQ 3.2.1

I have an object with a method made transactional using Spring which in
turn synchronously receives a message from a queue (can't use
MessageListener as it is driven by SOAP requests)

When I throw a runtime exception after receiving the message, the
message does not seem to be put back on the queue.  

I can see from the log that XA Transactions are being used and a
rollback is occurring.  But subsequent retries to receive the message
fail as no messages are found.

However, if I restart the broker then the message is on the queue again.

I've seen a couple of threads on possible issues with (Transactions,
JmsTemplate, RedeliveryPolicy) but never a resolution.  Anyone?  Is this
a known issue?

 

Note: If I remove the transactional configuration for the method in
question then after the exception is thrown the message is no longer on
the queue even after restart of the broker which is the expected
behavior without transaction management.