activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: QueueBrowser and OnMessage
Date Fri, 25 Aug 2006 15:24:03 GMT
On 8/25/06, StanleyH <> wrote:
> hi,  my application works like an email client.  I want to use queuebrowser
> to browse all the messages on the queue/keep them on the server  and also be
> notified if a new message has arrived. queuebrowser does not have a
> OnMessage method.  is there a way I can be notified that  a new message has
> arrived on the queue and then have queuebrowser lists the updated queue.

I'm afraid not.

You could watch the MBeans to see the enqueue count rise. Or you could
create a dummy consumer then when a message arrives, close the
consumer - though that could break ordering on your queue.



View raw message