activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: How to get number of unacknowledged messages on the broker?
Date Thu, 11 Jun 2015 12:33:23 GMT
The alternate approach I described would probably be taken from outside the
broker rather than from a broker plugin.  But the method Chris pointed out
to you seems like a good one for implementing this within a plugin.
On Jun 11, 2015 5:46 AM, "Christopher Shannon" <
christopher.l.shannon@gmail.com> wrote:

> The ManagedRegionBroker keeps track of subscriptions.  Inside that broker
> class it keeps track of queueSubscribers and topicSubscribers.  The maps
> store SubscriptionView objects and they have a method called
> getMessageCountAwaitingAcknowledgement() that you could use.
>
> ManagedRegionBroker will be one of the brokers in the chain and you can get
> access to it from a BrokerPlugin.
>
> On Thu, Jun 11, 2015 at 5:31 AM, xabhi <xabhi91@gmail.com> wrote:
>
> > Hi,
> >
> > I am not sure what to do when you say "using JMX to iterate over each
> > subscription", Where will you do this inside a broker plugin? do you mean
> > to
> > create jmx connection and get those stats?
> > Can we not access those stats directly inside a broker plugin?
> >
> > Thanks,
> > Abhi
> >
> >
> >
> > --
> > View this message in context:
> >
> http://activemq.2283324.n4.nabble.com/How-to-get-number-of-unacknowledged-messages-on-the-broker-tp4697616p4697658.html
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >
>

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