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 function, you can address a particular one.

Important! In the search_all= parameter of the INI file of the agent, the administrator can define whether this function searches 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

  • JMX_INVOKE
    Calls a method of an MBean
  • MBEAN=
    Defines the object name of the MBean
  • OPERATIONNAME=
    Defines the name of the operation to be executed
  • PARAMS=
    Parameter list
    Note: Separate several parameters with commas.
  • SIGNATURE=
    (Optional) If the indicated MBean contains several methods of OPERATIONNAME= , you must assign the signature of the method to be executed with this parameter.

Example

JMX_INVOKE MBEAN=UC4:type=DatabaseExample, OPERATIONNAME=selectInvoice, PARAMS="1996-07-04,1996-07-10", SIGNATURE="java.lang.String,java.lang.String"

See also: