activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: Interceptors
Date Mon, 07 Mar 2011 14:42:01 GMT

you can get enqueue/dequeue count and some more info using JMX -

But I think you need to create an interceptor for the average message size
and hourly rates. You need to intercept messages coming and going from the
broker and store those info somewhere.
Dejan Bosanac
FuseSource - The experts in open source integration and messaging.
ActiveMQ in Action -
Blog -

On Mon, Mar 7, 2011 at 3:07 PM, schumi <> wrote:

> Hi Dejan,
> Thanks for ur reply.
> I tried to make use of Advisory messages to get the Producer and Consumer
> ID's. I also was able to get the destination name.
> But I am not able to get the enqueue count and dequeue count for that
> destination (queue / topic).
> There is a class called 'DestinationStatistics' under
> In this class, there are methods such as 'getEnqueues', 'getDequeues' and
> 'getMessages'. But neither the constructor of this class nor the methods in
> the class are accepting any parameters such as 'Queue Name' / 'Topic Name'.
> How can i make use of this class to fetch the above mentioned details for a
> particular queue or topic?
> I also went thru the Interceptors pages mentioned by you in ur reply, but
> still I am not able to figure out how do I get the enqueue and dequeue
> count
> of messages as well as the average size of messages that too on an hourly
> basis.
> Regards,
> Schumi
> --
> View this message in context:
> Sent from the ActiveMQ - Dev mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message