Java Dynamic Management Kit 5.1 Tools Reference Guide

3.7 Using the Generated Code

The proxygen tool generates Java source code that you can use for developing Java managers. To develop a Java manager with code generated by the proxygen tool, use the RemoteMBeanServer interface. By using this interface, you can develop Java managers without having to modify the code that the proxygen tool generates.

Nevertheless, if you want to define a specific view of an MBean, you can modify the code that the proxygen tool generates. To ensure that the modified code remains consistent with the MBean that it represents, modify only the proxy and not the interface.