Java Dynamic Management Kit 3.2 Programming Guide
[ Previous ][ Fast Back ]Appendix D. Java Beans Development Kit Example[ Fast Forward ][ Next ]

Directories and Files

The files contained in the example directory are described in the following subsections.

The directory containing the source files for this example depend on the platform, as shown in the table.

Platform

Directory

Solaris

installDir/SUNWconn/jaw/examples/agentbean

Windows NT

installDir\SUNWconn\jaw\examples\agentbean

AgentMain.java

AgentMain.java provides an implementation of a Java Dynamic Management agent in which the core management framework object is declared as static. This class is designed to be loaded into the BeanBox application by means of a .jar file. The AgentMain class, once instantiated, can interact with any m-bean instantiated in the BeanBox application, provided the m-bean contains the code required to register itself with the repository.

TextSample.java

TextSample.java defines a simple m-bean for use with this example. It contains in its constructor the code required to register itself with the m-bean repository, as shown in Example D-1.

Makefile

The Makefile compiles the example Java classes and creates the manifest files and .jar files required to enable the example to be used with the BeanBox application.


[ Previous ][ Home ][ Next ]
Java Beans Development Kit Example[ Up ]Making a Manageable JavaBeans Component