JMX can be queried from Java code (from a separate program, not from the broker itself). Just make sure you enable the JMX endpoint in the broker config; details are on the ActiveMQ website.
I haven't done anything with BrokerPluginSupport, so I can't speak to whether this is possible there. On Jan 22, 2015 6:57 AM, "bansalp" <bpradee...@gmail.com> wrote: > Can this be done from java code. I am extending BrokerPluginSupport to log > certain stats related to broker and per destination stats. > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Stats-for-selector-tp4690236p4690264.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >