Getting Started with the Java Dynamic Management Kit 4.0

Proxy MBean Interface

A proxy MBean consists of:

The interface of a proxy MBean exposes the attributes and operations of the corresponding MBean. All operations have the same signature as in the original MBean, apart from the exceptions which are unique to the proxy MBean interface.

The generated class provides an implementation for the proxy MBean's interface. Therefore, the Java class contains the code to implement the getters, setters and operations of the proxy MBean. To do this, the Java class relies on the com.sun.jdmk.comm.RemoteMBeanServer interface. This interface specifies the API for the connector client object which the management application uses to communicate with its agents. For example, the Java class implementation of a getter operation calls the appropriate operations of the interface. Through this interface, the corresponding getter operation of the MBean is called remotely, and its result is sent back to the proxy MBean.

The generated class implements the com.sun.jdmk.Proxy interface in order to provide additional management capabilities.

As the interface is used by all connector client objects in the Java Dynamic Management Kit, all proxy MBeans can be connected to their corresponding MBean through any of the communication protocols. It also guarantees that the behavior of the proxies is not affected by how the connector client is implemented.