[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - XATestBase::testRecoverOnXA

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed May 2 00:43:19 EDT 2007


When calling session.recover, the message was being ACKed only when session.close was called.

Even when you don't have anything to recover, SessionAspect::handleRecover was setting recoverCalled to true, and handlePostDeliver wouldn't be able to ACK anything.

This would be okay if the customer aways called session.close afterward... but it happens that for instance when using JCA the session is never closed (well.. at least for the life cycle of a testcase).

So.. I'm now only setting recoverCalled if there is anything to be recovered, so this would be okay.

I have added XATestBase::testRecoverOnXA with an expected behavior. We could change this anyway we want as long this test works.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042283#4042283

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042283



More information about the jboss-dev-forums mailing list