activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Tarau <...@daxtechnologies.com>
Subject Re: Get Queue message count in 4.0
Date Fri, 05 May 2006 15:22:15 GMT
What about ActiveMQMessageConsumer.getMessageSize()? It seems the size 
is the message count from that queue.

Adrian Tarau wrote:
> Well I just compiled what you just told me, there are statistics. This 
> wouldn't help me.
> What I need is, after the application starts to see how many messages 
> are in the persistence related with a queue name, so a plain SQL on 
> the messages table with a filter should give me what I want. The idea 
> is to make throttling in a message distribution application.
>
> James Strachan wrote:
>> On 5/5/06, Adrian Tarau <ady@daxtechnologies.com> wrote:
>>  
>>> ActiveMQ RC2 doesn't have
>>>
>>> org/apache/activemq/broker/region/Region.html#getDestinationMap()
>>>     
>>
>> It was a fairly recent addition to allow the stats to be viewed
>> without using JMX; so you'll need a build of 4.0
>>
>> http://people.apache.org/~chirino/incubator-activemq-4.0/maven1/incubator-activemq/distributions/

>>
>>
>> -- 
>>
>> James
>> -------
>> http://radio.weblogs.com/0112098/
>>   
>
>


Mime
View raw message