Hi

The HEX value at the end of the FileConsumer you see on JConsole comes from
[1] which includes System.identityHashCode() for the name of
javax.management.ObjectName to avoid any name conflicts.

And of course that value will change by each JVM run, so that I assume the
best option you have is to query for:

  MBeanServer.queryNames(new ObjectName("*:type=consumers,*"), null);

Of course there's also the JMX Query-API out there you could make use of,
however I'm not familiar with it.

[1]
https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/main/java/org/apache/camel/management/DefaultManagementNamingStrategy.java

Babak

--
View this message in context: 
http://camel.465427.n5.nabble.com/Monitoring-Camel-with-JMX-tp5646538p5646746.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to