Thanx much for the reply. I think I'm beginning to understand. What's more, it seems to be working! :-)

Garth

Jiaqi Guo wrote:
Garth Keesler wrote:
The more I read, the less sure I am of what I know... :-)

Is it true that DBCP running with Tomcat provides sharing of database connections across separate invocations of different web services (on the same Tomcat server) that use the same database?

Thanx,
Garth

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


http://confluence.atlassian.com/display/DOC/Configuring+a+MySQL+Datasource+in+Apache+Tomcat is a document for configuring JIRA and a good example of how a global DBCP DataSource is defined in Tomcat.

Basically you can declare it in Tomcat server.xml, refer it in web.xml and get the DataSource in code through JNDI.

Make sure to put the commons-jdbc and JDBC driver jar file into <tomcat_install_dir>/common/lib rather than <webapp_dir>/WEB-INF/lib.

Hope it helps. Good luck.




Regards



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to