Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

ProcedureTo Run Open MBean Example 2

  1. Compile all files in the examplesDir/current/OpenMBean2 directory with the javac command.

    For example, on the Solaris platform, type:

    $ cd examplesDir/current/OpenMBean2/
    $ javac -classpath classpath *.java

  2. Run the agent class that interacts with the open MBean:

    $ java -classpath classpath Agent

  3. Open a second terminal window and change to the OpenMBean2 example directory:

    For example, on the Solaris platform, type:

    $ cd examplesDir/current/OpenMBean2/

  4. Run the manager class:

    $ java -classpath classpath Manager

    Interact with the manager through the standard input and output in the window where it was started. The Manager class displays information about each management step and waits for your input before continuing.

Previous Previous     Contents     Index     Next Next