[jboss-dev-forums] [JBoss AS7 Development] - How to get the JBoss server instance id?

Markus Kühle do-not-reply at jboss.com
Tue Oct 25 05:56:56 EDT 2011


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&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111025/499592bb/attachment.html 


More information about the jboss-dev-forums mailing list