qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Godfrey (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Commented: (QPID-209) Message.acknowledge() should only acknowledge messages consumed by the application
Date Mon, 18 Dec 2006 09:08:23 GMT
    [ http://issues.apache.org/jira/browse/QPID-209?page=comments#action_12459235 ] 
            
Rob Godfrey commented on QPID-209:
----------------------------------

The supplied patch is sub-optimal in that this special case only applies when you are not
using MessageListeners.  Rather than individually acknowledging messages, we should use the
previous implementation (of doing a multiple acknowledge on the last consumed Message) in
this case.

Even in the no Message Listener case, we should be able to optimize the acknowledges sent
so that the majority of cases can be handled with multiple acknowledge.

> Message.acknowledge() should only acknowledge messages consumed by the application
> ----------------------------------------------------------------------------------
>
>                 Key: QPID-209
>                 URL: http://issues.apache.org/jira/browse/QPID-209
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client, JMS Compliance
>            Reporter: Rob Godfrey
>            Priority: Minor
>         Attachments: QPID-209.patch
>
>
> If not using MessageListeners, but instead calling receive() on the consumers, it is
possible for the application to consume messages "out of order", in this case it is not correct
to acknowledge all messages up to and including the id of the last message consumed.  Instead
only those messages which have actually been consumed should be acknowledged.

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

        

Mime
View raw message