Register an mbean.
This method is invoked by the MBeanServer for
createMBean() and registerMBean().
The object name passed maybe unqualified.
The map is a user definable string to value object map for holding
information against a registered object. This map may contain metadata
related to the registration, such as registration date/time, classloader
references, etc.
Pass
org.jboss.mx.server.ServerConstants.JMI_DOMAIN JMI_DOMAIN in
both the key and values of the values map to get access to the reserved
domain. It is removed from the map during registration to save memory.
Pass
ServerConstants.CLASSLOADER CLASSLOADER in the values map to
set the context classloader
Other values are user definable and can be retrieved using the
getValue(ObjectName,String) method.
Parameters: object - the mbean to register. Parameters: name - the object name to assign to the mbean. Parameters: valueMap - a map of other information to include in theregistry an object instance for the registered mbean exception: InstanceAlreadyExistsException - when the object nameis already registered. exception: MBeanRegistrationException - when an exception is raisedduring preRegister for the mbean. exception: NotCompliantMBeanException - when the passed object isa valid mbean. |