Its a little fiddly to do it without JMX, but you should be able to get a Map of all the destinations in a Broker
http://activemq.codehaus.org/maven/apidocs/org/apache/activemq/broker/region/Region.html#getDestinationMap() which should return Destination objects in the values of each entry which have stats available http://activemq.codehaus.org/maven/apidocs/org/apache/activemq/broker/region/Destination.html On 5/5/06, Adrian Tarau <[EMAIL PROTECTED]> wrote: > I'm in the same VM, I don't want to activate JMX, can I access the > internal classes who provide this functionality? > > James Strachan wrote: > > JMX... > > > > http://activemq.org/JMX > > > > On 5/4/06, Adrian Tarau <[EMAIL PROTECTED]> wrote: > > > >> How can I get how many messages are in a queue with ActiveMQ, since with > >> JMS is not possible? > >> > >> Thanks. > >> > >> > > > > > > -- > > > > James > > ------- > > http://radio.weblogs.com/0112098/ > > > > > -- James ------- http://radio.weblogs.com/0112098/
