Thanks a lot for sharing the link. I went through that and it seems all these end up at a point where the producer may slowdown processing or throw an exception (like ResourceAllocation Exception etc).
But the scenario what i am trying to avoid is the unwanted processing of constructing the message.. All the configurations described in the link actually exposes the memory issue only when the producer tries to send the message, not when it is actually producing (constructing) the message.. In my scenario, the message construction is a lengthier process and I dont want my system to unnecessary construct a message.System should execute the message generation process if and only if it is clear that ActiveMQ has sufficient memory (ie say, should not execute message generation process if the active mq usage is around 85%) Is it possible for me to achieve this ? Awaiting replies. -- View this message in context: http://activemq.2283324.n4.nabble.com/Controlling-Message-generation-based-on-ActiveMQ-memory-tp3576900p3576975.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.