tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Gomez <henri.go...@gmail.com>
Subject Tomcat JDBC Pool and common-dbcp extra parameters
Date Fri, 29 Oct 2010 22:30:21 GMT
Tomcat documentation about JDBC/Datasource
(http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html)
give various attributes for Datasource Factory like maxActive or
maxWait.

tomcat-dbcp is a copy of common-dbcp 1.3 and its documentation,
http://commons.apache.org/dbcp/configuration.html, indicate many
others parameters like :

- initialSize
- validationQuery
- minEvictableIdleTimeMillis

....

Could they be used also in Resource definition ?

ie :

<Resource name="jdbc/EmployeeDB"
            auth="Container"
            type="javax.sql.DataSource"
            username="dbusername"
            password="dbpassword"
            driverClassName="org.hsql.jdbcDriver"
            url="jdbc:HypersonicSQL:database"
            minEvictableIdleTimeMillis="1500"
            initialSize="2"
            maxActive="8"
            maxIdle="4"/>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message