Class PoolingDataSource

java.lang.Object
com.zfabrik.impl.db.data.PoolingDataSource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource

public class PoolingDataSource extends Object implements DataSource
A simple but effective data base connection pool. This pool manages a number of spare and a number of maximum connections. Connections that have errors will be closed. Connections will be forcibly closed after some expiration period (no stale connections)

Configuration properties:

maxInUseConnection
Maximum number of connections provided by this pool
maxSpareConnection
Maximum number of spare connections
connectionExpiration
Connections expire after this many milli-seconds
connectionMaxUse
Connections expire after they have been checked out this many times
transactionIsolation
If set, all connections provided will be set to this isolation level. Use the transaction isolation constants on Connection.
driverClass
Set this, if you want the pool to use a driver class rather than using connections from a data source. The latter is is recommended. See DataSourceResource on how to specify a data source class.
user
If configuring the pool via a driver class, this user name will be used to request new connections.
password
If configuring the pool via a driver class, this password will be used to request new connections.