When a jms session is rolled back via the Session.rollback() method, any messages due to
be sent and any acks due to be made in the session are thrown away.
Also any messages delivered in that session are supposed to be immediately redelivered, in
the same way as what happens when you call session.recover().
This is all pretty clear from the spec.
I wanted to clarify the recovery behaviour when the session is enlisted in an XA
transaction and rollback is called on the sessions XAResource.
Clearly the messages and acks need to be discarded in the same way, but I'm not sure
if we are required to replay the messages to the sessions consumers as we are when rolling
back using session.recover().
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958060#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...