Getting Started with the Java Dynamic Management Kit 5.0

Programming Examples

Sample applications that demonstrate most of the functionality of the Java DMK are provided in the examples package of the product. If you installed this package, the Java source files and README text files for these applications are located in subdirectories at:

installDir/SUNWjdmk/jdmk5.0/examples


Note –

In the Solaris operating environment, you need to be root user to write to this directory. To compile the example programs, users should copy the examples hierarchy to a more accessible location.


The README file for each example gives a brief explanation of the source files and the instructions for running its application. Further explanation for most examples is available in the Java Dynamic Management Kit 5.0 Tutorial.

The examples directory also contains the JdmkProxyMBeans subdirectory, which provides proxy MBeans for all of the Java DMK components that support them. These are generated by the proxygen tool and must be compiled in the normal way before use. You can use them to provide proxy objects in your manager applications for the agent-side service MBeans.