Hi , I know an alternate solution for ur problem. use JMX . ur producer periodically checks for the size of the queue and if the number of messages is greater than some 'count' ( specified by user ) , producer will wait until the number of messages goes below the 'count' .
take a look at this link -- http://activemq.apache.org/jmx.html -- View this message in context: http://activemq.2283324.n4.nabble.com/Advisory-Messages-tp3552271p3554723.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.