JMX_INVOKE
Use the JMX_INVOKE script element to call a method of an MBean and assign parameters to it. If the MBean has more than one method, you can address a particular one.
Important! In the search_all= parameter of the agent's INI file, the administrator defines whether this function searches for the MBean on all local MBean servers, or only on those to which the agent is connected.
Syntax
JMX_INVOKE MBEAN=...,OPERATIONNAME=...,PARAMS=...[,SIGNATURE=...]
Parameters
| Parameter | Description |
|---|---|
| MBEAN= | Object name of the MBean |
| OPERATIONNAME= | Name of the operation to execute |
| PARAMS= | Parameter list. Note: Separate multiple parameters with commas. |
| SIGNATURE=
(Optional) |
If the specified MBean contains several methods of OPERATIONNAME=, use this parameter to assign the signature of the method to execute. |
Examples
The following example invokes the selectInvoice operation on the specified MBean, passing two date parameters.
JMX_INVOKE MBEAN=UC4:type=DatabaseExample, OPERATIONNAME=selectInvoice, PARAMS="1996-07-04,1996-07-10", SIGNATURE="java.lang.String,java.lang.String"
See also: