On 23-03-2009 22:42, Caldarale, Charles R wrote:
From: Edoardo Panfili [mailto:edoa...@aspix.it]
Subject: can I use org.apache.tomcat.dbcp.dbcp.BasicDataSource ?
can I use "org.apache.tomcat.dbcp.dbcp.BasicDataSource" in place of
"org.apache.commons.dbcp.BasicDataSource"?
You do that by letting Tomcat manage the connection pool:
http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html
(Adjust the above link for the version of Tomcat you're using, which you didn't
bother to tell us.)
It's 6.0.18 (sorry). Under OS X (java 1.5) and Linux (java 1.6).
I am using opejpa and it seems to need an explicit connection-pool. I
did some test and I can achieve better performances if I use
connection-pools, no differences between tomcat-dbcp and "plain"-dbcp.
Edoardo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org