activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <bruce.sny...@gmail.com>
Subject Re: How to get notified on expired messages?
Date Sat, 16 Apr 2011 15:51:34 GMT
On Fri, Apr 15, 2011 at 11:06 PM, Blue Diamond <gvnanils@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

Mime
View raw message