// Query broker MBeanServer for QueueMBeans
Set queueSet = brokerMBeanServer.queryNames(new ObjectName(jmxDomain
+ ":*,Type=Queue"), (QueryExp) null);
if ( queueSet.isEmpty() ) { // No QueueMBeans, meaning no JMX support
throw new JmxException("ActiveMQ Broker Not Configured With JMX Support");
}
// Query JMX Server for Broker MBean. We need the broker's name from an MBean to construct
// queue query string.
for (Object nameObject : brokerMBeanServer.queryNames(new ObjectName(jmxDomain