[ 
https://issues.apache.org/jira/browse/QPID-621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marnie McCormack updated QPID-621:
----------------------------------

    Fix Version/s:     (was: M4)

Descoping items not being worked on for M4 into Unknown Fix Version for now

> A message be acknowledged after its message consumer is closed but don't 
> think we allow that.
> ---------------------------------------------------------------------------------------------
>
>                 Key: QPID-621
>                 URL: https://issues.apache.org/jira/browse/QPID-621
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M2, M2.1, M3
>            Reporter: Martin Ritchie
>            Assignee: Aidan Skinner
>         Attachments: QPID-621-tk2.patch, QPID-621.patch
>
>
> When looking up something about acking noticed this in the JMS FAQ:
> Q: Can a message be acknowledged after its message consumer is closed?
> A: Yes. Since message acknowledgment processing is performed at the session 
> level, message acknowledgement is still relevant after a consumer is closed. 
> All messages consumed by the session are acknowledged for the following two 
> examples:
> // CLIENT_ACKNOWLEDGE session
> Message msg1 = topicSubscriber1.receive();
> Message msg2 = topicSubscriber2.receive();
> topicSubscriber1.close();
> msg2.acknowledge();
> // transacted session
> Message msg1 = queueReceiver.receive();
> queueReceiver.close();
> session.commit();
> From our code msg2.acknowledge will call session close which acks on all the 
> consumers.. but the consumer if closed will throw an exception... in the 
> above snippet the consumer will have been removed from the session so I 
> *think* the ack will not be accepted. 
> Especially as the consumer.close() will reject messages.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to