qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Ritchie (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Updated: (QPID-621) A message be acknowledged after its message consumer is closed but don't think we allow that.
Date Thu, 10 Jan 2008 10:08:34 GMT

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

Martin Ritchie updated QPID-621:
--------------------------------

    Fix Version/s:     (was: M2.1)
                   M3

> 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
>    Affects Versions: M2, M2.1, M3
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>             Fix For: M3
>
>         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.


Mime
View raw message