On Wed, Jun 4, 2014 at 3:19 AM, Ben Caradoc-Davies <
ben.caradoc-dav...@csiro.au> wrote:

> So DBCP 1.4 does not support 
> minEvictableIdleTimeMillis/timeBetweenEvictionRunsMillis
> or equivalent?
> http://docs.geoserver.org/latest/en/user/data/app-
> schema/data-stores.html#jndi


Those are supported, but they are not useful, as the pool won't evict
connections
below the minIdle threshold, just the ones above it.
What we need is maxConnLifetimeMillis, which is not available in the 1.4.x
series:
http://svn.apache.org/viewvc/commons/proper/dbcp/branches/DBCP_1_4_x_BRANCH/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java?view=markup

It's only available in the 2.x series instead (scroll down a bit more here):
http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/main/java/org/apache/commons/dbcp2/BasicDataSourceFactory.java?view=markup


Cheers
Andrea

-- 
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to