On 06/09/2017 01:13 PM, roger.allen wrote:
...or can someone tell me how to check if there are messages in a queue
without having to call Receive()?

Roger



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Apache-NMS-ImessageConsumer-ReceiveNoWait-not-returning-a-message-tp4727286p4727288.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

The only other way to check would be to use a QueueBrowser but that is probably overkill compared to doing a longer receive call. If there are messages in the queue but you aren't receiving them then you are either subscribing to the wrong queue or there's possibly another consumer on the queue with a large prefetch buffer set and is holding the contents hostage. You need to do some investigation into what's going on at the broker end as well as on your client(s).

--
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply via email to