FileDocCategorySizeDatePackage
UnregisterMBeanCaller.javaAPI DocGlassfish v2 API3245Fri May 04 22:36:28 BST 2007com.sun.enterprise.admin.jmx.remote.server.callers

UnregisterMBeanCaller

public class UnregisterMBeanCaller extends AbstractMethodCaller
Invokes the method unregisterMBean of the MBeanServerConnection.
see
MBeanServerRequestMessage.UNREGISTER_MBEAN
author
Kedar Mhaswade
since
S1AS8.0
version
1.0

Fields Summary
Constructors Summary
public UnregisterMBeanCaller(MBeanServerConnection mbsc)

		super(mbsc);
		METHOD_ID = MBeanServerRequestMessage.UNREGISTER_MBEAN;
	
Methods Summary
public javax.management.remote.message.MBeanServerResponseMessagecall(javax.management.remote.message.MBeanServerRequestMessage request)

		Object result = null;
		boolean isException = false;
		try {
			mbsc.unregisterMBean((ObjectName)request.getParams()[0]);
			result = null; //void method
		}
		catch(Throwable e) {
			result = e;
			isException = true;
		}
		return ( new MBeanServerResponseMessage(METHOD_ID, result, isException) );