Is there a way to get the JBoss server instance id?
On JBoss 4.x i could get it through a system property:
String jBoss = System.getProperty("jboss.identity");
On JBoss 5.x the way was through the remote identiy object:
MBeanServer mBeanServer = MBeanServerFactory.createMBeanServer();
Identity id = Id.get(mBeanServer);
String instanceId = id.getInstanceId();
But i don't find a way in JBoss 7 to receive the JBoss server instance id.
Does someone know the right way to get the unique server instance id?