Prev Next

Java / JMX

How do I create a Standard MBean in JMX?

A standard MBean is composed of an MBean interface and a class. The MBean interface lists the methods for all exposed attributes and operations. The class implements this interface and provides the functionality of the instrumented resource.

A standard MBean is defined by writing a Java interface called SomethingMBean and a Java class called Something that implements that interface. Every method in the interface defines either an attribute or an operation in the MBean. By default, every method defines an operation. Attributes and operations are methods that follow certain design patterns.

Once a resource has been instrumented by MBeans, the management of that resource is performed by a JMX agent.

More Related questions...

Show more question and Answers...


Comments & Discussions