You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by yogu13 <yo...@gmail.com> on 2016/11/30 08:29:16 UTC

QueueBrowser can see messages being processed but unacknowledged

Hi,

This could probably be an issue on the ActiveMQ's QueueBrowser side.
ActiveMQ's Queue Browser API returns messages list that includes the ones
which currently getting processed by a consumer (not sent the
acknowledgment). I have seen this behaviour in ActiveMQ 5.13.3 and 5.14.1

To replicate this issue following needs to be done.

1. Publish 3 messages to queue Test 
2. In a stand alone code have a message listener which goes to sleep call of
onMessage() (sleep for 10 mins) (Session is transacted false and Auto
Acknowledge)
3. In a different Stand alone code have a queue browser code with no
selector specified.

We can see that QueueBrowser returns all the three messages instead of 2.

I am not sure if this behaviour is right or wrong but does differ from how
Weblogic JMS and HornetQ work (not sure about how the behaviour is in
Artemis etc etc).

If this is not an issue and a product feature itself. Is there a way (by way
of selector etc etc) i can get only those messages from QueueBrowser which
are there in queue and not getting processed by any of the consumers ?

If need be i can provide the code to replicate the issue.

Regards,
-Yogesh




--
View this message in context: http://activemq.2283324.n4.nabble.com/QueueBrowser-can-see-messages-being-processed-but-unacknowledged-tp4719599.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.