com.ca.jcs.jndi
Class JNDIConnectionPool
java.lang.Object
org.apache.commons.pool.BaseObjectPool
org.apache.commons.pool.impl.GenericObjectPool
com.ca.jcs.cfg.GenericObjectPoolConnectionManager
com.ca.jcs.jndi.JNDIConnectionPool
- All Implemented Interfaces:
- Activatable, ConnectionManager, ObjectPool
public class JNDIConnectionPool
- extends GenericObjectPoolConnectionManager
Management of a pool of JNDI connections (InitialDirContexts) based on
provided configuration jndiEnv using JNDIConnectionFactory to create brand new
connections where there are not enough already in the pool. Uses JNDIConnectionFactory
to actually create and destroy connections.
| Fields inherited from class org.apache.commons.pool.impl.GenericObjectPool |
DEFAULT_LIFO, DEFAULT_MAX_ACTIVE, DEFAULT_MAX_IDLE, DEFAULT_MAX_WAIT, DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_MIN_IDLE, DEFAULT_NUM_TESTS_PER_EVICTION_RUN, DEFAULT_SOFT_MIN_EVICTABLE_IDLE_TIME_MILLIS, DEFAULT_TEST_ON_BORROW, DEFAULT_TEST_ON_RETURN, DEFAULT_TEST_WHILE_IDLE, DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS, DEFAULT_WHEN_EXHAUSTED_ACTION, WHEN_EXHAUSTED_BLOCK, WHEN_EXHAUSTED_FAIL, WHEN_EXHAUSTED_GROW |
| Methods inherited from class org.apache.commons.pool.impl.GenericObjectPool |
addObject, borrowObject, clear, close, evict, getLifo, getMaxActive, getMaxIdle, getMaxWait, getMinEvictableIdleTimeMillis, getMinIdle, getNumActive, getNumIdle, getNumTestsPerEvictionRun, getSoftMinEvictableIdleTimeMillis, getTestOnBorrow, getTestOnReturn, getTestWhileIdle, getTimeBetweenEvictionRunsMillis, getWhenExhaustedAction, invalidateObject, returnObject, setConfig, setLifo, setMaxActive, setMaxIdle, setMaxWait, setMinEvictableIdleTimeMillis, setMinIdle, setNumTestsPerEvictionRun, setSoftMinEvictableIdleTimeMillis, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setWhenExhaustedAction, startEvictor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDIConnectionPool
public JNDIConnectionPool(Properties jndiEnv,
GenericObjectPool.Config config,
Logger log)
JNDIConnectionPool
public JNDIConnectionPool(Properties jndiEnv,
Logger log)
Created 2011-07-14 13:27 EST