The proxygen compiler generates Java source code that you use for developing Java managers. To develop a Java manager by using code generated by proxygen, you use the RemoteMBeanServer interface. Using the RemoteMBeanServer interface enables you to develop Java managers without having to modify the code that proxygen generates. However, you can also modify the code that proxygen 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 have
to compile the files that proxygen 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, do not modify the interface; modify only the proxy.