activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Regarding AMQ-4181 - JMS queue browser returns only page size number of messages
Date Tue, 02 Jul 2013 16:24:54 GMT
note that browsing will only return a snapshot... it won't stream back
messages as more messages are sent to the queue.

eg... if you create the queue browser when there are 239 messages in the
queue at that point, it will return those... even if your client is adding
more after that point.


On Tue, Jul 2, 2013 at 12:17 PM, binita.bharati <binita.bharati@gmail.com>wrote:

> The testcase has this significant difference in approach from what I am
> doing:
>  - TestCase uses the same javax.jms.Session instance to both produce and
> then browse the queue.
>
> What I am doing :
> - A queue is already present in the broker, and am sending messages to this
> queue (works fine, and shows up fine in ActiveMQ web console)
> - There are no consumers for this queue
> - Now , I need to browse this queue. So, I create a QueueBrowser instance
> (in a different javax.jms.Session), and try enumerating over it. The queue
> has over 500 messages, but the QueueBrowser only returns the first 239
> messages.
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Regarding-AMQ-4181-JMS-queue-browser-returns-only-page-size-number-of-messages-tp4668724p4668801.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

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