Package com.sun.enterprise.admin.server.core

Examples of com.sun.enterprise.admin.server.core.CustomMBeanRegistration


       NotificationFilter filter = ruleEvent.getNotificationFilter();

       try {
            //check if this is a system defined rule then explictly load the MBean      
            if (isSystemDefined) {
                CustomMBeanRegistration obj = getCustomMBeanRegistration();
                actionObjName = obj.registerMBean(definedActionMBean);
                instanceMbs.addNotificationListener(eventObjName, actionObjName,
                                                    filter, null);   
            } else {
                //user defined should have been loaded by adminservice
                //if mbean has defined object name, use that to obtain
View Full Code Here


    private CustomMBeanRegistration getCustomMBeanRegistration() {

        //This a temp support, till appropriate provider is provided later
        final String CUSTOM_REGRISTRATION_IMPL_CLASS =
          "com.sun.enterprise.admin.mbeans.custom.loading.CustomMBeanRegistrationImpl";
        CustomMBeanRegistration customObj = null;

        Constructor ctor = null;
  Object[] args =  null;

        try {
View Full Code Here

    public MBeanValidator() {
        mbs = MBeanServerFactory.newMBeanServer();
    }
    public ObjectName registerTestMBean(final Map<String, String> params, final Map<String, String> attributes) throws RuntimeException {
        try {
            CustomMBeanRegistration cmr = new CustomMBeanRegistrationImpl(mbs);
            final Mbean m = toMbean(params, attributes, true);
            final ObjectName ron = cmr.registerMBean(m);
            return ( ron );
        } catch (final Exception e) {
            throw new RuntimeException(e);
        }
       
View Full Code Here

        final ObjectName on = CustomMBeanRegistrationImpl.getCascadingAwareObjectName(mbean);
        if (mbs.isRegistered(on)) {
            logger.info(CMBStrings.get("cmb.unsuccessfulRegistration", on));
        }
        else {
            final CustomMBeanRegistration cmr = new CustomMBeanRegistrationImpl(mbs);
            cmr.registerMBean(mbean);
            logger.info(CMBStrings.get("cmb.successfulRegistration",  mbean.getName()));
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.server.core.CustomMBeanRegistration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.