-
1. Re: Cannot get list of topics using JMX
Wolfgang Mayer Jul 20, 2015 10:29 AM (in response to George Turner)I think the objectName is not correct. You my find the correct names via the java console.
The method server.getMBeanInfo(objectName) should give you some information about the MBean.
-
2. Re: Cannot get list of topics using JMX
George Turner Jul 20, 2015 12:18 PM (in response to Wolfgang Mayer)I assure you, the object names are COMPLETELY correct. And the MBeanInfo does not provide anything useful. As I stated, this code works as currently implemented, but I don't like doing this:
private static final String jmxPrefix = "jboss.as:subsystem=messaging,hornetq-server=default,jms-topic=";
private static final String[] topicNames =
{
"AtmosphericParameters",
"C2SimInput",
"CalibrationThresholds",
"CatalogUpdatePCMIn",
"CatalogUpdateStatusIn",
"CatalogUpdateRSOIn",
"Clients",
-
3. Re: Cannot get list of topics using JMX
Wolfgang Mayer Jul 21, 2015 8:18 AM (in response to George Turner)You could search the objectNames via queryMBeans:
ObjectName objectName = new ObjectName("jboss.as.expr:subsystem=messaging,hornetq-server=default,core-address=*");
Set<ObjectInstance> mbs = server.queryMBeans(objectName, null);
should give you the objectNames via (ObjectInstance) getObjectName()
-
4. Re: Cannot get list of topics using JMX
George Turner Jul 27, 2015 10:12 AM (in response to Wolfgang Mayer)Worked as described, THANK YOU!