activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <>
Subject Re: How to "activate" an interceptor
Date Mon, 23 Nov 2009 15:22:52 GMT
On Mon, Nov 23, 2009 at 8:02 AM, moreno9000 <> wrote:
> Thank you, Bruce.
> For my control (number of messages in a queue)
> do I need to override a specific method?
> Which one?
> send() method?

So you're trying to control the number of messages in a queue at any
given time. Are you trying to prevent any new messages from being sent
to the queue or what? Please explain the use case in more detail.

I'm not sure yet if this applies, but you could instead configure an
eviction policy to limit the number of messages held in a destination
based on some criteria:

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:

View raw message