Package com.sun.enterprise

Examples of com.sun.enterprise.ManagementObjectManager


        WebBundleDescriptor bd) throws ServerInstanceException {
        ArrayList sArr = null;

        try {
            java.util.Set webDescriptors = bd.getWebDescriptors();
            ManagementObjectManager mom = Switch.getSwitch()
                                                .getManagementObjectManager();
            String moduleName = mom.getModuleName(bd);
            String applicationName = mom.getApplicationName(bd);
            WebComponentDescriptor wd = null;
            sArr = new ArrayList(webDescriptors.size());

            String j2eeType = null;
            String servletName = null;
View Full Code Here


        if(mailRes == null) {
            _logger.log(Level.INFO, "core.resourcedeploy_error");
        } else {
            if (mailRes.isEnabled()) {
                //registers the jsr77 object for the mail resource deployed
                ManagementObjectManager mgr =
                    getAppServerSwitchObject().getManagementObjectManager();
                mgr.registerJavaMailResource(mailRes.getJndiName());
                installResource(mailRes);
            } else {
                _logger.log(Level.INFO, "core.resource_disabled",
                        new Object[] {mailRes.getJndiName(),
                        IASJ2EEResourceFactoryImpl.MAIL_RES_TYPE});
View Full Code Here

        ResourceInstaller installer = getAppServerSwitchObject().getResourceInstaller();

        // removes the resource from the collection
        installer.removeResource(j2eeResource);
       
        ManagementObjectManager mgr =
                getAppServerSwitchObject().getManagementObjectManager();
        mgr.unregisterJavaMailResource(mailRes.getJndiName());
    }
View Full Code Here

      String poolName = jdbcRes.getPoolName();

        // loads dependent jdbc connection pool if not loaded
        loadPool(jdbcRes);

      ManagementObjectManager mgr = Switch.getSwitch().getManagementObjectManager();
      mgr.registerJDBCResource( jndiName );
      ConnectorRuntime runtime = ConnectorRuntime.getRuntime();
      runtime.createConnectorResource( jndiName, poolName, null);
      runtime.createConnectorResource( getPMJndiName( jndiName),
              poolName, null);
      _logger.finest("deployed resource " + jndiName );     
View Full Code Here

  ConnectorRuntime runtime = ConnectorRuntime.getRuntime();
  runtime.deleteConnectorResource( jndiName );
  runtime.deleteConnectorResource( pmJndiName );
 
        ManagementObjectManager mgr =
                Switch.getSwitch().getManagementObjectManager();
        mgr.unregisterJDBCResource( jndiName );

        //Since 8.1 PE/SE/EE - if no more resource-ref to the pool
        //of this resource exists in this server instance, remove
        //pool from connector runtime
        checkAndDeletePool(jdbcRes);
View Full Code Here

           (com.sun.enterprise.config.serverbeans.AdminObjectResource)resource;
        final ConnectorRuntime crt = ConnectorRuntime.getRuntime();
       
        if (aor.isEnabled()) {
            //registers the jsr77 object for the mail resource deployed
            final ManagementObjectManager mgr =
                getAppServerSwitchObject().getManagementObjectManager();
            mgr.registerAdminObjectResource(aor.getJndiName(),
                aor.getResAdapter(), aor.getResType(),
                getPropNamesAsStrArr(aor.getElementProperty()),
                getPropValuesAsStrArr(aor.getElementProperty()));
        } else {
                _logger.log(Level.INFO, "core.resource_disabled",
View Full Code Here

        crt.deleteAdminObject(aor.getJndiName());
        _logger.log(Level.FINE,
                   "Deleted adminObject in backend",aor.getJndiName());
       
        //unregister the managed object
        final ManagementObjectManager mgr =
                getAppServerSwitchObject().getManagementObjectManager();
        mgr.unregisterAdminObjectResource(aor.getJndiName(), aor.getResType());

    }
View Full Code Here

        final ConnectorRuntime crt = ConnectorRuntime.getRuntime();
       
        if (domainCcp.isEnabled()) {
            if (UNIVERSAL_CF.equals(defName) || QUEUE_CF.equals(defName) || TOPIC_CF.equals(defName)) {
            //registers the jsr77 object for the mail resource deployed
            final ManagementObjectManager mgr =
                getAppServerSwitchObject().getManagementObjectManager();
            mgr.registerJMSResource(domainCcp.getName(), defName, null, null,
                    getPropNamesAsStrArr(domainCcp.getElementProperty()),
                    getPropValuesAsStrArr(domainCcp.getElementProperty()));
            }
           
        } else {
View Full Code Here

                   "Deleted ConnectorConnectionPool in backend",poolName);
       
        //unregister the managed object
        if (QUEUE_CF.equals(defName) || TOPIC_CF.equals(defName)) {
            //registers the jsr77 object for the mail resource deployed
            final ManagementObjectManager mgr =
                getAppServerSwitchObject().getManagementObjectManager();
            mgr.unregisterJMSResource(domainCcp.getName());
        }
    }
View Full Code Here

        String [] sArr = null;
       
        try {
                java.util.Set ejbs = bd.getEjbs();
    ManagementObjectManager mom = Switch.getSwitch().getManagementObjectManager();
                String moduleName = mom.getModuleName(bd);
                String applicationName = mom.getApplicationName(bd);
                EjbDescriptor ed = null;
                sArr = new String[ejbs.size()];
                int i=0;
                String j2eeType = null;

                for(Iterator it=ejbs.iterator(); it.hasNext(); ) {
                        ed = (EjbDescriptor) it.next();
                        j2eeType = mom.getJ2eeTypeForEjb(ed);
                        sArr[i] = ("j2eeType=" + j2eeType + "," +
                                   "name=" + ed.getName() + "," +
                                   "EJBModule=" + moduleName + "," +
                                   "J2EEApplication=" + applicationName);
                        i++;
View Full Code Here

TOP

Related Classes of com.sun.enterprise.ManagementObjectManager

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.