activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mparida <manojpari...@gmail.com>
Subject Re: 24 hours listener
Date Fri, 18 Dec 2009 07:59:15 GMT

Sorry, There is no need to put a infinite loop here. The onMessage() it self
listens to the queue 24/7.

Sorry for confusion.

Mparida wrote:
> 
> Hi, 
> 
> I want to configure a 24 hrs listener which shall listen to a queue
> through out the day and listen if there are a ny messages in queue or not.
> 
> I tried it through an infinite loop but as you know it creates high CPU.
> 
> I do not want to use schedulers for this.
> 
> If any one has done similar kind of thing (May be using thread or like
> that), please suggest.
> 
> Thank you,
> Manoj
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/24-hours-listener-tp26829469p26840259.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message