JBoss Community

How to get the JBoss server instance id?

created by Markus Kühle in JBoss AS7 Development - View the full discussion

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

Start a new discussion in JBoss AS7 Development at Community