37.4. Registering User MBeans

Application MBeans can be created and registered in the MBean server by calling registerMBean method on the MBeanServer object or createMBean method on the MBeanServerConnection object. Also, MBeans can be loaded using the m-let service, a dynamic loading mechanism provided by the JMX implementation. This mechanism allows loading MBeans from a remote URL. The information on the MBeans to load is provided in an m-let text file. Refer to the JMX implementation documentation for details concerning this file. In addition, Chapter 38 JOnAS and JMX: Registering and Manipulating MBeans illustrates the use of this m-let mechanism. In order to make an m-let text file accessible to JOnAS applications, install it in the JONAS_ROOT/conf directory.