JMX_CREATE_MBEAN
Use the JMX_CREATE_MBEAN script element to register an MBean. It creates an instance of the specified class and registers it in the MBean Server under the object name. The LOADERNAME= parameter can contain the object name of a loading class to use when loading the specified class.
Syntax
JMX_CREATE_MBEAN CLASSNAME=...[,NAME=...][,LOADERNAME=...][,EXISTS=...]
Parameters
| Parameter | Description | Allowed Values | Default Value |
|---|---|---|---|
| CLASSNAME= | Class name of the MBean | n.a. | n.a. |
| NAME=
(Optional) |
The name to use for MBean registration. This parameter does not have to be specified when the MBeanRegistration interface is implemented in the MBean. | n.a. | n.a. |
| LOADERNAME=
(Optional) |
The name of the loading class | n.a. | 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. |
|
ABORT |
Examples
The following example registers the DatabaseExample MBean.
JMX_CREATE_MBEAN CLASSNAME=com.uc4.mbeans.DatabaseExample, NAME=UC4:type=DatabaseExample
See also: