To Run Open MBean Example 2
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
|
Run the agent class that interacts with the open MBean: $ java -classpath classpath Agent
|
Open a second terminal window and change to the OpenMBean2 example directory: For example, on the Solaris platform, type:
$ cd examplesDir/current/OpenMBean2/
|
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.
|