The proxygen compiler generates Java source code that you use for developing Java managers. To develop a Java manager by using code generated by the proxygen compiler, you use the RemoteMBeanServer interface. Using this interface enables you to develop Java managers without having to modify the code that the proxygen compiler generates. However, you can also modify the code that it generates if you want to define a specific view of an MBean.
The proxygen compiler generates Java source code,
not compiled Java classes. For your proxy MBeans to be accessible to a Java
manager, you must compile the files that the proxygen compiler
generates, and make sure that the compiled Java classes are stored at a location
specified in the CLASSPATH
environment
variable of the manager or are accessible through the class loader of the
manager.
If you want to define a specific view of an MBean, you can modify the generated code. To ensure that the modified code remains consistent with the MBean it represents, modify only the proxy and not the interface.