On 09/09/2009 06:35 PM, Bill Whiting wrote:
There's nothing special about the put program.
The browse program browses messages from the queue and will acquire and
accept every fourth message.
The code works in that if you run the put program 5 times , and then run
browse. The first time you run browse there will be 20 messages that are
read. The second time the browse will only show 16 messages, although
qpid-stat -q will show the queue depth as 20.
There is indeed a bug. If you change the acceptMode to
ACCEPT_MODE_EXPLICIT you will see the dequeues reported as expected.
However with ACCEPT_MODE_NONE, the message is not correctly dequeued on
being acquired as it should be (the explicit accept in this case would
then be ignored). It is removed from the in-memory delivery queue (which
is why it doesn't get redelivered to subsequent clients).
I've raised a Jira (https://issues.apache.org/jira/browse/QPID-2089) and
will endeavour to get that fixed shortly. Thanks for raising this!
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscr...@qpid.apache.org