Package com.sun.enterprise.web

Examples of com.sun.enterprise.web.ServerConfigLookup


        mgr.setDuplicateIdsSemanticsAllowed(true);
       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
       
        //for intra-vm session locking
        _logger.finest("sctx.restrictedSetPipeline(new SessionLockingStandardPipeline(sctx))");
        StandardContext sctx = (StandardContext) ctx;
View Full Code Here


        mgr.setStore(store);
       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("UUID_GENERATOR = " + generator);
        }
       
View Full Code Here

        mgr.setDuplicateIdsSemanticsAllowed(false);
       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("UUID_GENERATOR = " + generator);
        }
       
View Full Code Here

        mgr.setStore(store);
       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("UUID_GENERATOR = " + generator);
        }
       
View Full Code Here

        mgr.setDuplicateIdsSemanticsAllowed(true);
       
        //in the future can set other implementations
        //of UuidGenerator in server.xml
        //even if not set it defaults to UuidGeneratorImpl
        ServerConfigLookup lookup = new ServerConfigLookup();
        UuidGenerator generator = lookup.getUuidGeneratorFromConfig();
        mgr.setUuidGenerator(generator);
       
        //for intra-vm session locking
        _logger.finest("sctx.restrictedSetPipeline(new SessionLockingStandardPipeline(sctx))");
        StandardContext sctx = (StandardContext) ctx;
View Full Code Here

     * for this virtaul server. otherwise, return false.
     */
    private static boolean getAvailabilityEnabled() {
        // check global availability-enabled
        //if availability-enabled set global ha defaults
        ServerConfigLookup serverConfigLookup = new ServerConfigLookup();
        boolean isAvailabilityEnabled =
            serverConfigLookup.getAvailabilityEnabledFromConfig();
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("EESSOFactory : AvailabilityGloballyEnabled = " + isAvailabilityEnabled);
        }
        return isAvailabilityEnabled;
    }
View Full Code Here

     * and availability-enabled in web-container-availability is "true"
     * and persistence-type is "HA" or "Replicated"
     * otherwise, return false.
     */
    private static boolean getSsoFailoverEnabled() {
        ServerConfigLookup serverConfigLookup = new ServerConfigLookup();
        boolean webContainerAvailabilityEnabled =
            serverConfigLookup.getWebContainerAvailabilityEnabledFromConfig();       
        boolean isSsoFailoverEnabled =
            serverConfigLookup.getSsoFailoverEnabledFromConfig();
        boolean isPersistenceTypeOkForFailover =
            isPersistenceTypeHAOrReplicated();
        if(_logger.isLoggable(Level.FINEST)) {
            _logger.finest("EESSOFactory : WebContainerAvailabilityEnabled = " + webContainerAvailabilityEnabled);
            _logger.finest("EESSOFactory : SSOFailoverEnabled = " + isSsoFailoverEnabled);
View Full Code Here

    }   
   
    //this could be ha, replicated
    //or a registered replication implementation
    private static boolean isPersistenceTypeHAOrReplicated() {   
        ServerConfigLookup lookup = new ServerConfigLookup();
        PersistenceType persistenceType =
                lookup.getPersistenceTypeFromConfig();
        String persistenceTypeString = persistenceType.getType();
        return persistenceTypeString.equalsIgnoreCase("HA")
            || persistenceTypeString.equalsIgnoreCase("Replicated")
            || isPersistenceTypeRegistered();
    }
View Full Code Here

            || persistenceTypeString.equalsIgnoreCase("Replicated")
            || isPersistenceTypeRegistered();
    }
   
    private static boolean isPersistenceTypeRegistered() {         
        ServerConfigLookup lookup = new ServerConfigLookup();
        PersistenceType persistenceType =
                lookup.getPersistenceTypeFromConfig();
        String persistenceTypeString = persistenceType.getType();
        EEPersistenceTypeResolver resolver = new EEPersistenceTypeResolver();
        return resolver.isRegisteredType(persistenceTypeString);
    }   
View Full Code Here

        EEPersistenceTypeResolver resolver = new EEPersistenceTypeResolver();
        return resolver.isRegisteredType(persistenceTypeString);
    }   
   
    private boolean isPersistenceTypeHA() {   
        ServerConfigLookup lookup = new ServerConfigLookup();
        PersistenceType persistenceType =
                lookup.getPersistenceTypeFromConfig();
        String persistenceTypeString = persistenceType.getType();
        return persistenceTypeString.equalsIgnoreCase("HA");
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.web.ServerConfigLookup

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.