// 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");
}
} catch (Exception e) {
return;
}
// Query JMX Server for Broker MBean. We need the broker's name from an MBean to construct