Java Dynamic Management Kit 3.2 Programming Guide
[ Previous ][ Fast Back ]Chapter 8. Tools for Browsing M-Beans[ Fast Forward ][ Next ]

Information for Instantiating an M-Bean

The information you have to supply when you instantiate an m-bean is defined in the following subsections. This information consists of the components of the object name of the m-bean and other options.

Components of the Object Name of the M-Bean

The information you supply to form the object name of the m-bean is defined in the following subsections. For more information on object names, refer to Object Name in Chapter 4.

Domain

The domain part of the object name of the m-bean instance specifies the domain within which the m-bean exists. It must be an unquoted text string without spaces. The domain part of an object name is optional. If you do not specify the domain, the default domain of the agent is used.

Class

The class part of the object name of the m-bean instance. If the agent does not use the default rule for obtaining the Java class of an m-bean from the class part of its object name, you must use the Java Class option to specify the Java class of the m-bean. The default rule for obtaining the Java class of an m-bean from its object name is described in Mapping Rules for Class Names in Chapter 7. Class is mandatory.

For the job tool only:

Clicking the button adjacent to the Class text-entry field opens a list of the Java classes accessible to the agent. This list contains the Java class names of:

To instantiate an m-bean class that is not in this list, type its Java class name, including the package name, in the Class field. The Java class name must be an unquoted text string without spaces. When you click OK, this class is added to the list of the Java classes accessible to the agent.

Keys

The search key part of the object name of the m-bean instance consists of key attributes and their values used in the object name of the m-bean. Each attribute-value pair is expressed as key=value and must be separated from the one that follows it by a comma. The search key part of an object name is optional.

Other Options

The other options are required only if you do not want to use the defaults.


Note - If you are using the job tool, set the More option to on to add the Java Class and Class Loader text-entry fields to the Create Object window.


Java Class

The Java class name, including the package name, of the m-bean that you want to instantiate or delete. It must be an unquoted text string without spaces. This class must already be installed at a location specified in the CLASSPATH environment variable of the agent. By default, it is the class part of the object name of the m-bean instance.

You only need to specify this option if the agent does not use the default rule for obtaining the Java class of an m-bean from the class part of its object name.


Note - The default rule for obtaining the Java class of an m-bean from its object name is described in Mapping Rules for Class Names in Chapter 7.


Class Loader

The object name of the class loader you want to use for loading the class of the m-bean to be instantiated.


[ Previous ][ Home ][ Next ]
The job Tool[ Up ]Troubleshooting