JMX_CREATE_MBEAN

Use the JMX_CREATE_MBEAN script element to register an MBean. This script element creates an instance of the indicated class and registers it in the MBean Server with the object name. The parameter LOADERNAME= can contain an object name of a loading class which should be used to load the indicated class.

Syntax

JMX_CREATE_MBEAN

    CLASSNAME=...
    [, NAME=...]
    [, LOADERNAME=...]
    [EXISTS=...]

Parameters

  • JMX_CREATE_MBEAN
    Registers an MBEAN

  • CLASSNAME=
    Defines the class name of the MBean

  • NAME=
    (Optional) The name that should be used for MBean registration. This parameter does not have to be indicated when the MBeanRegistration Interface is implemented in the MBean.

  • LOADERNAME=
    (Optional) The name of the loading class.
    Default value: The Default Loader Repository is used for loading the MBean.

  • EXISTS=
    (Optional) Defines the handling of the AE job when the MBean has already been registered.
    Allowed values:

    • ABORT (default)
      Cancels the JMX job
    • IGNORE
      The script of the JMX job continues

Example

JMX_CREATE_MBEAN CLASSNAME=com.uc4.mbeans.DatabaseExample, NAME=UC4:type=DatabaseExample

See also: