Examples of PoolConfiguration


Examples of org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration

                                    for (Connector conn : repository.getConnectors()) {
                                        if (jndiName.equalsIgnoreCase(conn.getUniqueId())) {
                                            if (conn.getConnectionFactories() == null
                                                    || conn.getConnectionFactories().get(0) == null)
                                                continue;
                                            PoolConfiguration pc = conn.getConnectionFactories().get(0).getPoolConfiguration();
                                            if (MAX_POOL_SIZE.equals(parameterName)) {
                                                pc.setMaxSize(newValue.asInt());
                                            }
                                            if (MIN_POOL_SIZE.equals(parameterName)) {
                                                pc.setMinSize(newValue.asInt());
                                            }
                                            if (BLOCKING_TIMEOUT_WAIT_MILLIS.equals(parameterName)) {
                                                pc.setBlockingTimeout(newValue.asLong());
                                            }
                                            if (POOL_USE_STRICT_MIN.equals(parameterName)) {
                                                pc.setStrictMin(newValue.asBoolean());
                                            }
                                            if (USE_FAST_FAIL.equals(parameterName)) {
                                                pc.setUseFastFail(newValue.asBoolean());
                                            }
                                        }
                                    }
                                }
View Full Code Here

Examples of org.ow2.util.pool.impl.enhanced.PoolConfiguration

     */
    public SingletonSessionFactory(final String className, final EZBContainer container) throws FactoryException {
        super(className, container);

        // Only one instance
        PoolConfiguration poolConfig = new PoolConfiguration();
        poolConfig.setMax(1);
        poolConfig.setMin(1);
        poolConfig.setSpare(0);

        // Use of the old pool ?
        if (Boolean.getBoolean(OLD_POOL)) {
            JPool<EasyBeansSingletonSB, Long> jPool = new JPool<EasyBeansSingletonSB, Long>(
                    new JPoolWrapperFactory<EasyBeansSingletonSB, Long>(this));
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.