You can do this via flow-control.

See:

http://activemq.apache.org/producer-flow-control.html

Bye,
Norman

Am 06.06.2011 15:23, schrieb Aneesh:
Hi all,

I have a java class which produces the message and puts the message into the
queue.

I have a requirement where i should stop producing the message
programatically
depending on the memory usage of ActiveMQ..

How can i achieve this?
Is it through Advisory Messages? Or is there any other way?
Kindly share any links/documentation which will help me..

Thanks
Aneesh

--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Controlling-Message-generation-based-on-ActiveMQ-memory-tp3576900p3576900.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Reply via email to