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

RemoveNotifLsnrObjNameCaller

public class RemoveNotifLsnrObjNameCaller extends AbstractMethodCaller
Invokes the method removeNotificationListener of the MBeanServerConnection.
see
MBeanServerRequestMessage#REMOVE_NOTIFICATION_LISTENER_OBJECTNAME
author
Kedar Mhaswade
since
S1AS8.0
version
1.0

Fields Summary
private static final Logger
logger
Constructors Summary
public RemoveNotifLsnrObjNameCaller(MBeanServerConnection mbsc)

/*, 
        DefaultConfiguration.LOGGER_RESOURCE_BUNDLE_NAME );*/

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

//        final Object result		= new UnsupportedOperationException("" + METHOD_ID);
        Object result		= null;
        boolean isException = false;

        ObjectName objname1 = (ObjectName) request.getParams()[0];
        ObjectName objname2 = (ObjectName) request.getParams()[1];

        try {
            mbsc.removeNotificationListener(objname1, objname2);
        } catch (Exception e) {
            result = e;
            isException = true;
        }

        return ( new MBeanServerResponseMessage(METHOD_ID, result, isException) );