Messages not being correctly requeued when transacted session closed
--------------------------------------------------------------------

                 Key: QPID-299
                 URL: https://issues.apache.org/jira/browse/QPID-299
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
            Reporter: Rob Godfrey


When using a transacted session, on closing the session (channel) the 
uncommitted delivered messages should be requeued and delivered to subsequent 
consumers.  Currently this is not occuring as the requeue operation is creating 
a new transaction which is never committed.

The fix is to change the method close in AMQChannel by adding an explicit 
commit:

    public void close(AMQProtocolSession session) throws AMQException
    {
        _txnContext.rollback();
        unsubscribeAllConsumers(session);
        requeue();
>>        _txnContext.commit();
    }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to