[jboss-dev-forums] [JBoss AS7 Development] - Re: How to get the JBoss server instance id?
Ondřej Chaloupka
do-not-reply at jboss.com
Thu Oct 27 03:55:17 EDT 2011
Ondřej Chaloupka [http://community.jboss.org/people/ochaloup] created the discussion
"Re: How to get the JBoss server instance id?"
To view the discussion, visit: http://community.jboss.org/message/633795#633795
--------------------------------------------------------------
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
[http://community.jboss.org/message/633795#633795]
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/20111027/2616f29c/attachment.html
More information about the jboss-dev-forums
mailing list