activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Shannon <>
Subject Re: [ActiveMQ-5.14.1] QueueBrowser can view messages being processed by consumers which are not yet unacknowledged
Date Thu, 01 Dec 2016 17:26:53 GMT
This is how it is currently designed.  The browser will browse from paged
in messages in memory which includes already dispatched messages that
haven't been acked.  Right now there isn't any way to configure this
behavior so a code change would be needed to implement this.

On Thu, Dec 1, 2016 at 1:07 AM, yogu13 <> wrote:

> Hi,
> I did post this on ActiveMQ users group but sadly i didnt get a reply.
> Trying my luck in developers forum..
> 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.
> Thank you in advance..
> Regards,
> -Yogesh
> --
> View this message in context: http://activemq.2283324.n4.
> messages-being-processed-by-consumers-which-are-not-yet-
> unacknd-tp4719662.html
> Sent from the ActiveMQ - Dev mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message