Thanks a lot Bruce! :) That really helps. I'll give it a try. What I meant by alternatives was that if there are multiple ways of doing this using activemq features. So it seems this is the only feature.
Thanks & Regards, Anil On Sat, Apr 16, 2011 at 9:21 PM, Bruce Snyder <bruce.sny...@gmail.com>wrote: > On Fri, Apr 15, 2011 at 11:06 PM, Blue Diamond <gvnan...@gmail.com> wrote: > > Hi all, > > > > Is it possible with activemq, if I want to get notified about expired > > messages in my queue or topic? Does it also support batch mails - mail > out > > for every say 100 expired messages? What level of support is present in > > activemq in dealing with expired messages? Are there alternative ways of > > doing this? > > ActiveMQ produces advisory messages for various internal broker > operations and one of these operations is message expirations. Take a > look at the page on advisory messages, specifically the destination > and message advisories here: > > > http://activemq.apache.org/advisory-message.html#AdvisoryMessage-DestinationandMessagebasedadvisories > > You would need to develop an app with a JMS consumer that listens for > advisory messsages on the ActiveMQ.Advisory.Expired.Queue queue or the > ActiveMQ.Advisory.Expired.Topic topic and then handle them according > the whatever logic you need. In your case, just keep track of how many > expirations there have been and when the counter reaches 100, send an > email. > > I'm not sure what you mean by alternative ways of doing this. It's > basically an open-ended problem for you to solve by developing your > own app for it. > > Bruce > -- > perl -e 'print > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" > );' > > ActiveMQ in Action: http://bit.ly/2je6cQ > Blog: http://bruceblog.org/ > Twitter: http://twitter.com/brucesnyder >