You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andy Meadows <ja...@meadowsdesign.cc> on 2003/02/03 21:01:42 UTC

Passing parameters to DB connection through web.xml/server.xml

I am using Oracle and I want to take advantage of the statement caching
provided by the JDBC driver as well as the conneciton pooling provided by
Tomcat through org.apache.commons.dbcp.BasicDataSourceFactory.

I need to set/get the statement cache size (typically with calls to
setStmtCacheSize and getStmtCacheSize) without doing so in the application
code.  Is there a way I can have BDSF pass values into the connection or am
I stuck by tying the code to the db by using the getDelegate function in
org.apache.commons.dbcp.DelegatingConnection?

Thanks
Andy Meadows


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