Package com.sun.enterprise.web

Examples of com.sun.enterprise.web.ServerConfigLookup


        }
        if(connGroup == null) {
            if (_debug > 0) {
                debug("HAStore>>load: Failure to obtain connection from pool: returning null");
            }
            ServerConfigLookup config = new ServerConfigLookup();
            String connURL = config.getConnectionURLFromConfig();
            _logger.warning("ConnectionUtil>>getConnectionsFromPool failed using connection URL: " + connURL + " -- returning null. Check connection pool configuration.");
            return null;
        }

        Connection internalConn = connGroup._internalConn;
View Full Code Here


        }
        if(connGroup == null) {
            if (_debug > 0) {
                debug("HAStore>>remove: Failure to obtain connection from pool");
            }
            ServerConfigLookup config = new ServerConfigLookup();
            String connURL = config.getConnectionURLFromConfig();
            _logger.warning("ConnectionUtil>>getConnectionsFromPool failed using connection URL: " + connURL + " -- returning null. Check connection pool configuration.");
            return;
        }
       
        Connection internalConn = connGroup._internalConn;
View Full Code Here

        }
        if(connGroup == null) {
            if (_debug > 0) {
                debug("HAStore>>remove: Failure to obtain connection from pool");
            }
            ServerConfigLookup config = new ServerConfigLookup();
            String connURL = config.getConnectionURLFromConfig();
            _logger.warning("ConnectionUtil>>getConnectionsFromPool failed using connection URL: " + connURL + " -- returning null. Check connection pool configuration.");
            return;
        }
       
        Connection internalConn = connGroup._internalConn;
View Full Code Here

        }
        if(connGroup == null) {
            if (_debug > 0) {
                debug("HAStore>>clear: Failure to obtain connection from pool");
            }
            ServerConfigLookup config = new ServerConfigLookup();
            String connURL = config.getConnectionURLFromConfig();
            _logger.warning("ConnectionUtil>>getConnectionsFromPool failed using connection URL: " + connURL + " -- returning null. Check connection pool configuration.");
            return;
        }
       
        Connection internalConn = connGroup._internalConn;
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);
        _logger.finest("UUID_GENERATOR = " + generator);
       
        //for intra-vm session locking
        _logger.finest("sctx.restrictedSetPipeline(new SessionLockingStandardPipeline(sctx))");
View Full Code Here

    * User for the connection
    */
    protected String user = null;
    protected String getConnUser() {
        if (user == null) {       
            ServerConfigLookup lookup = new ServerConfigLookup();
            user = lookup.getConnectionUserFromConfig();
        }
        return user;
    }
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);

        StandardContext sctx = (StandardContext) ctx;
        sctx.restrictedSetPipeline(new SessionLockingStandardPipeline(sctx));
       
View Full Code Here

    * Password for the connection
    */
    protected String password = null;    
    protected String getConnPassword() {
        if (password == null) {
            ServerConfigLookup lookup = new ServerConfigLookup();
            password = lookup.getConnectionPasswordFromConfig();
        }
        return password;
    }
View Full Code Here

    * connection url string for the connection
    */
    protected String connString = null;
    protected String getConnString() {
        if (connString == null) {
            ServerConfigLookup lookup = new ServerConfigLookup();
            connString = lookup.getConnectionURLFromConfig();
        }
        return connString;
    }
View Full Code Here

    * connection data source string for the connection
    */
    protected String dataSourceString = null;   
    protected String getDataSourceNameFromConfig() {
        if (dataSourceString == null) {       
            ServerConfigLookup configLookup = new ServerConfigLookup();
            dataSourceString = configLookup.getHaStorePoolJndiNameFromConfig();
        }
        return dataSourceString;
    }
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.