tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose MarĂ­a Zaragoza <demablo...@gmail.com>
Subject META-INF/context.xml & connection pool
Date Thu, 28 Nov 2013 17:04:05 GMT
Hello:

I'm using Tomcat 6.0.23
Yes, I know is an old release

Anyway, I would like to use tomcat-jdbc connection pool JAR

So, I 've stored a context.xml into META-INF folder in my WAR, as

<Context>

<Resource auth="Container" type="javax.sql.DataSource"
 factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
 driverClassName="org.postgresql.Driver"
 initialSize="0"  maxActive="100" maxIdle="20" maxWait="10000" mindIdle="0"
 name="datasource/ddbb" password="xxxx" removeAbandoned="true"
 url="jdbc:postgresql://localhost:5433/ddbb?LoginTimeout=3"
 username="uuuuuu" validationQuery="SELECT 1" testOnBorrow="true" />

</Context>

My question is

should I store JAR ( tomcat-jdbc-x.x.x.jar & tomcat-juli-x.x.x.jar )
into WEB-INF/lib folder in WAR
or into $TOMCAT_HOME/lb folder ?

Could there be a problem by store them into the own WAR ( WEB-INF/lib ) ?


Thanks and regards

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


Mime
View raw message