Examples of AdminContext


Examples of com.sun.enterprise.admin.AdminContext

            }
           
            if (useBackupServerXml) {
                AdminService as = AdminService.getAdminService();
                if (as != null) {
                    AdminContext ac = as.getAdminContext();
                    if (ac != null) {
                        configContext = ac.getAdminConfigContext();
                    }
                }
            }
            if (configContext == null) {
                configContext = ConfigFactory.createConfigContext(fileUrl);
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

        }
        // unreachable
    }

    protected static void flushConfigAndSendEvents() throws Exception {
        AdminContext adminContext =
            AdminService.getAdminService().getAdminContext();
        ConfigContext ctx = adminContext.getAdminConfigContext();
                                                                               
        if (ctx.isChanged()) {
            ctx.flush();
        }
                                                                               
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

            }
        return eventSuccess;
    }

    private static ConfigContext getConfigContext() {
         AdminContext adminContext =
                        AdminService.getAdminService().getAdminContext();
         return adminContext.getAdminConfigContext();
    }
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

        try {
            if (req.getCascade() && !req.isForced()){
                deleteConnectorDependentResources(req.getName(),
                    target.getName());
                deploymentCtx.getConfigContext().flush();
                AdminContext adminContext =
                        AdminService.getAdminService().getAdminContext();
                new AdminNotificationHelper(adminContext).sendNotification();
            }
        } catch(Throwable t){
            status.setStageStatus(DeploymentStatus.WARNING);
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

            }
        return eventSuccess;
    }

    private static ConfigContext getConfigContext() {
         AdminContext adminContext =
                        AdminService.getAdminService().getAdminContext();
         return adminContext.getAdminConfigContext();
    }
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

    }
    return ( on ); // may not return null
  }
 
  private static String getDomainName() {
    final AdminContext ac = AdminService.getAdminService().getAdminContext();
    return ( ac.getDomainName() );
  }
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

   
    private void EmitUserMgmtEvent(int action, String user, String[] groups) throws MBeanConfigException
    {
        try
        {
            AdminContext adminContext = MBeanRegistryFactory.getAdminContext();
            String instanceName = adminContext.getServerName();
            String name = (String)getAttribute(ServerTags.NAME);
            UserMgmtEvent event = new UserMgmtEvent(instanceName, name, action, user, groups);
            event.setTargetDestination(getParentConfigName());
            EventContext.addEvent(event);
        }
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

    }
    private void emitDynamicReconfigEvent(boolean bEnabled)
    {
        try
        {
            AdminContext adminContext = MBeanRegistryFactory.getAdminContext();
            String instanceName = adminContext.getServerName();
            int action = bEnabled?DynamicReconfigEvent.ACTION_ENABLED:DynamicReconfigEvent.ACTION_DISABLED;
            DynamicReconfigEvent event = new DynamicReconfigEvent(instanceName, action);
            String configName = (String)getAttribute(ServerTags.NAME);
            event.setTargetDestination(configName);
            EventContext.addEvent(event);
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

    }
    private void emitDynamicReconfigEvent(boolean bEnabled)
    {
        try
        {
            AdminContext adminContext = MBeanRegistryFactory.getAdminContext();
            String instanceName = adminContext.getServerName();
            int action = bEnabled?DynamicReconfigEvent.ACTION_ENABLED:DynamicReconfigEvent.ACTION_DISABLED;
            DynamicReconfigEvent event = new DynamicReconfigEvent(instanceName, action);
            String configName = (String)getAttribute(ServerTags.NAME);
            event.setTargetDestination(configName);
            EventContext.addEvent(event);
View Full Code Here

Examples of com.sun.enterprise.admin.AdminContext

   * then get jmx connector to the corresponding DAS and obtain
   * the mBeanServerConnection. Now on use this DAS' mBeanServerConnection as
   * wherever mBeanServer is referred.
   */

  AdminContext adminContext = MBeanRegistryFactory.getAdminContext();
  ConfigContext configContext = adminContext.getRuntimeConfigContext();
  String serverName = adminContext.getServerName();

        try {
    // check if DAS
    boolean isDas = ServerHelper.isDAS(configContext, serverName);
    if (isDas) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.