This content has been marked as final.
Show 2 replies
-
1. Re: Getting MBeanServerDelegate
juha Sep 12, 2003 8:55 AM (in response to andrewboyd)The MBean Delegate is always registered to a fixed object name: JMImplementation:type=MBeanServerDelegate
-- Juha -
2. Re: Getting MBeanServerDelegate
andrewboyd Sep 15, 2003 7:41 AM (in response to andrewboyd)Thanks for the advice. That works fine. Here is my code incase anyone else wants it.
delegate = new ObjectName("JMImplementation:type=MBeanServerDelegate");
kafeMbeanServer_ = MBeanServerFactory.createMBeanServer(Host.DOMAIN);
logger_.debug("Getting MBeanServerId from kafeMBeanServer");
agentID = (String) kafeMbeanServer_.getAttribute(delegate, "MBeanServerId");
-Andrew