Re: Detect empty Queue programmatically

2011-06-16 Thread Jason Whaley
e- > From: Jason Whaley [mailto:jasonwha...@gmail.com] > Sent: Wednesday, June 15, 2011 8:07 PM > To: users@activemq.apache.org > Subject: Re: Detect empty Queue programmatically > > I'm not sure if by saying "I do not want to poll the queue to see remaining > me

Re: Detect empty Queue programmatically

2011-06-16 Thread James Green
ason Whaley [mailto:jasonwha...@gmail.com] > Sent: Wednesday, June 15, 2011 8:07 PM > To: users@activemq.apache.org > Subject: Re: Detect empty Queue programmatically > > I'm not sure if by saying "I do not want to poll the queue to see remaining > messages" means

RE: Detect empty Queue programmatically

2011-06-15 Thread Yuvaraj Vanarase
etect empty Queue programmatically I'm not sure if by saying "I do not want to poll the queue to see remaining messages" means you are ruling out polling JMX also, but you could very well monitor a Queue's QueueSize attribute via JMX and take action when it is 0. Here's

Re: Detect empty Queue programmatically

2011-06-15 Thread Jason Whaley
I'm not sure if by saying "I do not want to poll the queue to see remaining messages" means you are ruling out polling JMX also, but you could very well monitor a Queue's QueueSize attribute via JMX and take action when it is 0. Here's a link to at least setting up JMX on the broker with some oth

Re: Detect empty Queue programmatically

2011-06-15 Thread Dejan Bosanac
Hi, there's no such advisory at the moment, but you can create your own plugin that could do that. See http://activemq.apache.org/developing-plugins.html for more info Regards -- Dejan Bosanac - http://twitter.com/dejanb - The experts in open source integration and messaging - ht

Detect empty Queue programmatically

2011-06-14 Thread Yuvaraj Vanarase
Hi, I would like to fire some sql query when all messages are processed from Queue ie. Queue becomes empty. I do not want to poll the queue to see remaining messages. Is there any way by which activemq will deliever an event to some listener? Like we have advisory message listener. Regards, Yu