HomeIndex > FAQ > GBean Development > Is it possible to get a reference to the MBeanServer from a GBean?

Yes. Simply add a reference of type MBeanServerReference to your GBeanInfo, and call the getMBeanServer() on the reference to obtain the MBeanServer. For example:

Here is the xml configuration for the example above: