To open the JMX browser window click on the
menu and then click the option. The JMX browser window will then be displayed.
The window is made up of two main sections:the details panel and the MBean panel. The MBean panel displays the MBeans exposed by the MBean server. These are grouped by domain name. The details panel displays information about the currently selected MBean. To select an MBean just left-click it with the mouse and it will become highlighted. The information displayed in the details panel is as follows:
The total number of MBeans registered on this server.
The number of constructors exposed by this MBean.
The number of attributes exposed by this MBean.
The number of operations exposed by this MBean.
The number of notifications exposed by this MBean.
A brief description of the MBean.
There is also a
link which when clicked displays the attributes and operations exposed by this MBean. From there you can view readable attributes, alter writeable attributes and invoke operations.
5.4.1. Using Attributes and Operations
link is clicked the View JMX Attributes and Operations window is displayed. From here you can view all readable attributes exposed by the selected MBean. You can also alter writeable attributes. If an attribute is read-only then you will not be able to alter an attributes value. To alter an attributes value just double click on the current value and enter the new value. If the button is enabled then you can click this to view a more suitable editing method. If the attribute type is a JMX object name then clicking this button will display the JMX attributes and operations for that object.
At any point you can click the
button to refresh the attribute values. If an exception occurs while retrieving the value of an attribute the exception will be displayed in place of the attributes value.
You can also invoke operations upon an MBean. A list of operations exposed by an MBean is displayed below the attributes list. To invoke an operation simply select it from the list and click the
button. If the operation requires parameters a further window will be displayed, from this window you must specify values for each of the parameters required. You specify parameter values in the same way as you specify JMX attribute values. Once you have specified a value for each of the parameters click the button to perform the invocation.
Once the method invocation has completed its return value will be displayed.