activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Get Queue message count in 4.0
Date Fri, 05 May 2006 14:04:58 GMT
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 <ady@daxtechnologies.com> 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 <ady@daxtechnologies.com> 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/

Mime
View raw message