JBoss Community

Re: How to get the JBoss server instance id?

created by Ondřej Chaloupka in JBoss AS7 Development - View the full discussion

I'm not sure whether it's right way but maybe it could be possible to fetch it from a mBean.

Whether I found correct one then it could be something like:

 

ObjectName on = new ObjectName("JMImplementation:type=MBeanServerDelegate");

Object attr = server.getAttribute(on, "MBeanServerId");

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community