You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/10/15 16:53:48 UTC
DO NOT REPLY [Bug 13649] -
GenericObjectPool: Negative _maxActive doesn't allow growth
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13649>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13649
GenericObjectPool: Negative _maxActive doesn't allow growth
------- Additional Comments From johnrayburn@hotmail.com 2002-10-15 14:53 -------
To reproduce (using DBCP):
// Load driver class
Class.forName("your.jdbc.driver.here");
// Create DriverManager based pool
GenericObjectPool connectionPool = new GenericObjectPool(null);
connectionPool.setTestOnBorrow(true);
// For now, no max active pool amount
connectionPool.setMaxActive(-1);
DriverManagerConnectionFactory connectionFactory = new
DriverManagerConnectionFactory("db.url","user","pass");
PoolableConnectionFactory poolableConnectionFactory = new
PoolableConnectionFactory
(connectionFactory,connectionPool,null,null,false,true);
ds = new PoolingDataSource(connectionPool);
ds.getConnection(); // BLOCKS
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>