title: ActiveMQ get number of consumers listening to a topic from java
body: <p>I would like to be able to get the number of consumers listening to a topic from java for an embedded ActiveMQ (5.4.2) broker in the same JVM. Is JMX really the only option here? JMX seems like a bad option since it may be optionally disabled. This post shows how to use JMX to get a list of connections: <a href="https://stackoverflow.com/questions/7431734/activemq-get-list-of-connections-through-jmx">ActiveMQ: Get list of connections through JMX?</a></p>
  
  <p>I would prefer a non-JMX based solution though due to it perhaps being disabled. I guess JMX would be ok if it was still usable from java when disabled. I am just familiar with enabling/disabling it for use with jconsole.</p>
  
  <p>Am I missing something in the API?</p>