Skip Headers
Previous
Previous
 
Next
Next

Invoking Operations

Operations are mechanisms that cause the execution of code on the JMX server within the managed object. These operations are basically a Remote Method Invocation (RMI) and can take parameters and return a result. Java Mission Control supports the execution of these operations, along with passing parameters and displaying the results.

The Operations tab lists the operations associated with each MBean and allows you to invoke any of those operations. For each operation, the tab shows the operation name, its parameters, and its return value.

To invoke an operation

  1. Click the Operations tab in the MBean Features panel.

  2. Highlight the operation name you want to invoke.


    Note:

    To be able to invoke a value, the Operation name must have a parameter that can be edited; that is, there is a value in the Parameters column.


  3. Enter the parameter by clicking on the Value field and click Execute.

    When you click Execute, the result of the invocation is displayed in a panel. One new panel is created for each operation execution.

    If a parameter is invalid, the Execute button is invalidated and the parameter is colored red.