Markus Kühle [
http://community.jboss.org/people/mkuehle] created the discussion
"How to get the JBoss server instance id?"
To view the discussion, visit:
http://community.jboss.org/message/633451#633451
--------------------------------------------------------------
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?
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/633451#633451]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]