net.spy.pool
Class JDBCPoolFiller
java.lang.Object
net.spy.pool.PoolFiller
net.spy.pool.JDBCPoolFiller
- public class JDBCPoolFiller
- extends PoolFiller
PoolFiller object to fill a pool with JDBC PoolAbles
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCPoolFiller
public JDBCPoolFiller(String name,
SpyConfig conf)
getObject
public PoolAble getObject()
throws PoolException
- get a new object for the pool.
The following config entries are required:
- dbDriverName - Name of the JDBC driver to use
- dbSource - JDBC url for the database
- dbUser - Database username
- dbPass - Database password
The following config entries are optional:
- maxAge - The maximum amount of time (in milliseconds) that the
connection can live. Default is forever
- dboptions.* - Any JDBC driver specific options you want to
pass.
- Specified by:
getObject in class PoolFiller
- Throws:
PoolException - if a new connection could not be made.