Does TOMCAT provide JDBC Connection Pooling ?

Nicola Ken Barozzi


Tomcat (talking about version 3.x.x) is the reference implementation of the webapp part of J2EE (ie, no EJB). In this spec connection pooling is not contemplated.

You can however use pooling by using the JDBC 2.0 optional package instead of JDBC 2.0 directly.

For additional info see the JGuru JDBC FAQ Forum and see How do I access a database from my servlet? in the Servlets FAQ.

[Also, http://www.javaexchange.com hosts a fine implementation of a JDBC Connection Pool. -Alex]