On Mon, Nov 23, 2009 at 8:02 AM, moreno9000 <moreno.ma...@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)u8...@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

Reply via email to