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

CreateMBeanParamsCaller

public class CreateMBeanParamsCaller extends AbstractMethodCaller
Invokes the method createMBean of the MBeanServerConnection.
see
MBeanServerRequestMessage#CREATE_MBEAN_PARAMS
author
Kedar Mhaswade
since
S1AS8.0
version
1.0

Fields Summary
Constructors Summary
public CreateMBeanParamsCaller(MBeanServerConnection mbsc)

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

        Object result = null;
        boolean isException = false;
        try {
            result = mbsc.createMBean(
            (String)request.getParams()[0],
            (ObjectName)request.getParams()[1],
            (Object[])request.getParams()[2],
            (String[])request.getParams()[3]
            );
        }
        catch(Throwable e) {
            result = e;
            isException = true;
        }
        return ( new MBeanServerResponseMessage(METHOD_ID, result, isException) );