6 Replies Latest reply on May 2, 2007 10:59 AM by Clebert Suconic


    Clebert Suconic Master

      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 client aways called session.close afterward... but 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.