Package com.sun.enterprise.admin

Examples of com.sun.enterprise.admin.AdminContext


     */
    public String[] getTargets() throws MBeanConfigException{
        try {
            java.util.ArrayList targetList = new java.util.ArrayList();
            final MBeanServer mbs = MBeanServerFactory.getMBeanServer();
            final AdminContext ac = MBeanRegistryFactory.getAdminContext();
            final MBeanRegistry mr =
                    MBeanRegistryFactory.getAdminMBeanRegistry();
            final String dn = ac.getDomainName();
            final String servers = ServerTags.SERVERS;
            final String server = ServerTags.SERVER;
            final String cluster = ServerTags.CLUSTERS;
            final String[] locations = new String[]{dn};
            ObjectName serversON = mr.getMbeanObjectName(servers, locations);
View Full Code Here


            sLogger.log(Level.WARNING, "core.admin_service_default_config",
                    type);
        }
        AdminService as = instantiateAdminService(type);
        as.setContext(sc);
        AdminContext ac = sc.getPluggableFeatureFactory().getAdminContext();
        MBeanRegistryFactory.setAdminExtensionFeature(sc.getPluggableFeatureFactory().getAdminExtensionFeature());
        vef = sc.getPluggableFeatureFactory().getValidationExtensionFeature();
        lef = sc.getPluggableFeatureFactory().getLoggerExtensionFeature();
        ref = sc.getPluggableFeatureFactory().getRestartExtensionFeature();
        ruef = sc.getPluggableFeatureFactory().getRUExtensionFeature();
View Full Code Here

        EndPoint[] ePoints  = null;
        ConfigContext ctx   = null;

       
        if ( AdminService.getAdminService() != null ) {
            AdminContext aCtx=AdminService.getAdminService().getAdminContext();
            ctx = aCtx.getAdminConfigContext();
        } else {
            ctx = ApplicationServer.getServerContext().getConfigContext();
        }
       
        if ( isCluster(t, ctx) ) { // cluster destination
View Full Code Here

                           Object[] returnValues = (Object[])mbs.invoke(
                                       new ObjectName("com.sun.appserv:name=dotted-name-get-set,type=dotted-name-support"),
                                       "dottedNameSet",
                                       new Object[] {new String[] {cfg.getName() + ".availability-service.converged-load-balancer.config-file=" + configFileNewValue}},
                                       types);
                           AdminContext _adminContext = AdminService.getAdminService().getAdminContext();
                           String instanceName = _adminContext.getServerName();
                           String xpathCLB = "/domain/configs/config[@name='" + cfg.getName() + "']/availability-service/converged-load-balancer";
                           ConfigUpdate cfgUpdate = ConfigChangeFactory.createConfigUpdate(xpathCLB,
                                    "config-file", configFileOldValue, configFileNewValue);
                           ArrayList cfgList = new ArrayList<ConfigChange>();
                           cfgList.add(cfgUpdate);         
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.AdminContext

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.