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

Using the Java Beans Development Kit With the Agent Example

Before using this example, make sure that your class path defines the paths to:

Procedure To Set a Property Using the BeanBox

  1. Start the BeanBox:
    prompt% java sun.beanbox.BeanBoxFrame

    The path to this command must be defined either in the command you type or in your PATH variable.

  2. Load these .jar files into the BeanBox:

    • AgentMain.jar

    • TextSample.jar

    Once loaded, the names of the files appear in the list of items in the ToolBox window.

  3. Instantiate these classes, starting with AgentMain.

    When you instantiate TextSample, the Properties window contains a field named text.

  4. Use the Properties window to change the context of the text field.

    To view the changes, preview the m-bean using either the job tool (See The job Tool in Chapter 8) or a Web browser (See The M-Bean Browser Web Page in Chapter 8).


[ Previous ][ Home ][ Next ]
Compiling the Agent[ Up ]The Default Base Agent