Sets the instance handle of the object against which to
execute all methods in this ModelMBean management interface
(MBeanInfo and Descriptors).
Parameters:
-
mr - Object that is the managed resource
-
mr_type - The type of reference for the managed resource. Can be: ObjectReference,
Handle, IOR, EJBHandle, RMIReference.
If the MBeanServer cannot process the mr_type passed in, an InvalidTargetTypeException
will be thrown.
Throws:
-
MBeanException - The initializer of the object has thrown an exception.
-
RuntimeOperationsException - Wraps an IllegalArgumentException:
The managed resource type passed in parameter is null.
-
InstanceNotFoundException - The managed resource object could not be found
-
InvalidTargetObjectTypeException - The managed resource type cannot be processed by the
ModelMBean or JMX Agent.