JMX Extension

Status: Under Development

Since: Merlin 3.4

The Merlin JMX Extension is an MX4J adapter and contains everything needed to expose components as MBeans, as well as the JMX Agent and a couple of connectors, such as the HttpConnector and Remote JMX connector (JSR-160).

To enable JMX, you will need to declare the JMX Facility, as well as enable the components to be MBeans. See the example below on how to enable the JMX Facility. To enable the components to become MBeans, you have a few ways to do so;

  • Create a management interface which the component implements and declare the @avalon.mx interface="com.mydomain.MyMxInterface" in the component.
  • Create a MBeanInfo class.

Example

Enabling the JMX Agent

This is done by including the JMX Agent block, typically in your top level block.xml.