activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StanleyH <stanley.k...@gmail.com>
Subject Re: QueueBrowser and OnMessage
Date Fri, 25 Aug 2006 16:45:36 GMT

Hi, if I create another message (type==NewMessageNotification) and send it
with my message from the producer, and the recipient listens selectively to
NewMessageNotify and then call queuebrowse will that work? thanks.

James.Strachan wrote:
> 
> On 8/25/06, StanleyH <stanley.k.ho@gmail.com> 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.
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/QueueBrowser-and-OnMessage-tf2165346.html#a5987110
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message