[
https://issues.apache.org/jira/browse/QPID-299?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rob Godfrey reassigned QPID-299:
--------------------------------
Assignee: Rob Godfrey
> 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
> Assigned To: Rob Godfrey
> Fix For: M2
>
> Attachments: qpid-299.patch
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.