Examples of ConfigContext


Examples of com.sun.enterprise.config.ConfigContext

        if (event.getModuleType().equals(ModuleDeployEvent.TYPE_WEBMODULE)) {
            if (_logger.isLoggable(Level.FINEST)) {
                _logger.log(Level.FINEST,
                    "[WebModuleDeployEventListener] Handling event " + event.toString());
            }
            ConfigContext config = event.getOldConfigContext();
            String moduleName = event.getModuleName();

            // refreshes the config context with the context from this event
            try {
                getWebModulesManager().refreshConfigContext(config);
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext

                    "[WebModuleDeployEventListener] Handling event " + event.toString());
            }
            String moduleName = event.getModuleName();
               
            // unload from old location
            ConfigContext oldConfig = event.getOldConfigContext();
            moduleUndeployed(oldConfig, moduleName);
              
            // load to new location
            ConfigContext config = event.getConfigContext();
            moduleDeployed(config, moduleName);
        }
       
    }
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext

        if (event.getModuleType().equals(ModuleDeployEvent.TYPE_WEBMODULE)) {
            if (_logger.isLoggable(Level.FINEST)) {
                _logger.log(Level.FINEST,
                    "[WebModuleDeployEventListener] Handling event " + event.toString());
            }
            ConfigContext config = event.getConfigContext();
            String moduleName = event.getModuleName();

            WebModule webModule = getWebModuleAndUpdateCache(
                config, moduleName, true);
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext

        if (event.getModuleType().equals(ModuleDeployEvent.TYPE_WEBMODULE)) {
            if (_logger.isLoggable(Level.FINEST)) {
                _logger.log(Level.FINEST,
                    "[WebModuleDeployEventListener] Handling event " + event.toString());
            }
            ConfigContext config = event.getConfigContext();
            String moduleName = event.getModuleName();

            WebModule webModule = getWebModuleAndUpdateCache(
                config, moduleName, true);
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext

     * @return virtual servers as a string (separated by space or comma)
     */
    private String getVirtualServers(String appName) {
        String ret = null;
        try {
            ConfigContext ctx =
                ApplicationServer.getServerContext().getConfigContext();
            ret = ServerBeansFactory
                    .getVirtualServersByAppName(ctx, appName);
        } catch (ConfigException ce) {
            _logger.log(Level.FINE, "Cannot get virtual server for " + appName, ce);
View Full Code Here

Examples of com.sun.enterprise.config.ConfigContext

  return result;
    }

    public static Cluster getCluster()
    {
  ConfigContext configCtx = null;
  String instanceName = null;
  Cluster result = null;
  try {
            if(_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE, ".getCluster->:");
      }
      ServerContext serverContext = ApplicationServer.getServerContext();
      if (serverContext == null) {
    if(_logger.isLoggable(Level.FINE)) {
        _logger.log(Level.FINE, ".getCluster: No ServerContext");
    }
    return null;
      }
      configCtx = serverContext.getConfigContext();
      instanceName = serverContext.getInstanceName();
      result =
          ClusterHelper.getClusterForInstance(configCtx, instanceName);
  } catch (ConfigException e) {
            if(_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,
          ".getCluster: ConfigContext: " + configCtx.toString()
          + " ; instanceName: " + instanceName
          + " ; exception: " + e);
      }
  } finally {
            if(_logger.isLoggable(Level.FINE)) {
View Full Code Here

Examples of com.volantis.mcs.runtime.configuration.ConfigContext

                    servletContext.setMCSConfigFile("/tmp/mcs-config.xml");
                    // Collect System.err output
                    consoleOutput.useCollectionWith(new Executor() {
                        public void execute() throws Exception {
                            synchronized(servletContext) {
                                ConfigContext cc = new ServletConfigContext(servletContext);

                                ServletExternalPathToInternalURLMapper mapper =
                                        new ServletExternalPathToInternalURLMapper(servletContext);
                                volantis.initializeInternal(mapper, cc,
                                        new MarinerServletApplication());
View Full Code Here

Examples of com.volantis.mcs.runtime.configuration.ConfigContext

        pathURLMapper = new ServletExternalPathToInternalURLMapper(
                servletContext);

        // Always call the initialize method to match the behaviour of the code
        // generated by the jsp:usebean directive.
        ConfigContext cc = new ServletConfigContext(context);
        volantis.initializeInternal(pathURLMapper, cc, this);

        return volantis;
    }
View Full Code Here

Examples of org.apache.ws.util.jndi.tools.ConfigContext

      if ( serviceArray != null )
      {
         for ( int i = 0; i < serviceArray.length; i++ )
         {
            ServiceDocument.Service service = serviceArray[i];
            ConfigContext           context = new ConfigContext(  );
            context.setName( service.getName(  ) );
            Environment[] environmentArray = getEnvironmentArray( service.getEnvironmentArray(  ) );
            for ( int j = 0; j < environmentArray.length; j++ )
            {
               context.addEnvironment( environmentArray[j] );
            }
            Resource[] resourceArray = getResourceArray( service.getResourceArray(  ), service.getName(),namingContext );
            for ( int j = 0; j < resourceArray.length; j++ )
            {
               Resource resource = resourceArray[j];
               ResourceParameters params = resource.getParameters();
               setDefaultParameterValues( params );
               validateParameterValues( params );
            }
            for ( int j = 0; j < resourceArray.length; j++ )
            {
               context.addResource( resourceArray[j] );
            }

            ResourceLink[] resourceLinkArray = getResourceLinkArray( service.getResourceLinkArray(  ) );
            for ( int j = 0; j < resourceLinkArray.length; j++ )
            {
               context.addResourceLink( resourceLinkArray[j] );
            }

            services.add( context );
         }
      }
View Full Code Here

Examples of org.apache.ws.util.jndi.tools.ConfigContext

      if ( serviceArray != null )
      {
         ConfigContext[] services = getServiceArray( serviceArray, namingContext );
         for ( int i = 0; i < services.length; i++ )
         {
            ConfigContext service = services[i];
            namingContext.addService( service );
            ConfigContext[] serviceSubContextArray = getServiceSubContextArray( service );
            for ( int j = 0; j < serviceSubContextArray.length; j++ )
            { //todo not sure if defaults bubble down here...
               namingContext.addSubContext( serviceSubContextArray[j] );
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.