Permalink
Browse files

Make conn pool LIFO in order to exercise connections

  • Loading branch information...
1 parent 7da5479 commit 6c1aeea7189ed4de3aed2bff21e63781bd56db8b Ed Ceaser committed Sep 14, 2010
View
@@ -3,6 +3,6 @@
project.organization=com.twitter
project.name=querulous
sbt.version=0.7.4
-project.version=1.2.0
+project.version=1.2.1
build.scala.versions=2.7.7
project.initialize=false
@@ -56,6 +56,8 @@ class ApachePoolingDatabase(
config.testOnBorrow = checkConnectionHealthOnReservation
config.minEvictableIdleTimeMillis = evictConnectionIfIdleFor.inMillis
+ config.lifo = false
+
private val connectionPool = new GenericObjectPool(null, config)
private val connectionFactory = new DriverManagerConnectionFactory(url(dbhosts, dbname, urlOptions), username, password)
private val poolableConnectionFactory = new PoolableConnectionFactory(

0 comments on commit 6c1aeea

Please sign in to comment.