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 "activate" an interceptor
Date Mon, 23 Nov 2009 15:22:52 GMT
On Mon, Nov 23, 2009 at 8:02 AM, moreno9000 <moreno.mauri@italtel.it> 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:

http://activemq.apache.org/slow-consumer-handling.html

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