to use just JMS apis, have a look at the statisticsBrokerPlugin http://rajdavies.blogspot.com/2009/10/query-statistics-for-apache-activemq.html
2009/11/18 BenAvery <spacebab...@gmail.com> > > sorry if this is obvious in the documentation, I need to get going on this > in > a hurry! > > I'm using an embedded ActiveMQ broker in a Java app with Spring JMS, and > need to put a large number of messages on a queue, but throttle the rate, > as > other parts of the application need to have their messages served > reasonably > quickly, and not wait until all the new job's messages have been consumed. > > Is there a way I can request the current queue size from the broker, so I > can tell when it's free, to put a batch of messages on? > > thanks for any help. > -- > View this message in context: > http://old.nabble.com/interacting-with-embedded-queue-with-Spring-JMS-tp26412755p26412755.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source Integration http://fusesource.com