JMX: Difference between revisions
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
The ''platform MBean server'' is an MBean server that is built into the JVM. It can be accessed and shared by all managed components that are running in that JVM. It can be retrieved with <tt>java.lang.management.ManagementFactory.getPlatformMBeanServer()</tt>. The platform MBean server was introduced in Java 5. <tt>javax.management.MBeanServerFactory</tt> can be used to create a different MBean server, or look up an already existing MBean server (that is not the platform server). | The ''platform MBean server'' is an MBean server that is built into the JVM. It can be accessed and shared by all managed components that are running in that JVM. It can be retrieved with <tt>java.lang.management.ManagementFactory.getPlatformMBeanServer()</tt>. The platform MBean server was introduced in Java 5. <tt>javax.management.MBeanServerFactory</tt> can be used to create a different MBean server, or look up an already existing MBean server (that is not the platform server). | ||
For a code example of how to look up the platform MBean server and how to register an arbitrary MBean to it, see {{External|https://github.com/NovaOrdis/playground/blob/master/http/http-server/src/main/java/io/novaordis/playground/http/server/Main.java}} |
Revision as of 22:33, 7 January 2017
External
Internal
Overview
Subjects
Concepts
The Platform MBean Server
The platform MBean server is an MBean server that is built into the JVM. It can be accessed and shared by all managed components that are running in that JVM. It can be retrieved with java.lang.management.ManagementFactory.getPlatformMBeanServer(). The platform MBean server was introduced in Java 5. javax.management.MBeanServerFactory can be used to create a different MBean server, or look up an already existing MBean server (that is not the platform server).
For a code example of how to look up the platform MBean server and how to register an arbitrary MBean to it, see