Setting Connection Pool in Tomcat 6.x

Hi,

Recently I was configuring a connection pool for Oracle database on Tomcat server. Hence thought of sharing the same with you all. I am sure that everyone out there must have done this and found it simple. The reason for posting this is that most of my colleagues missed putting the driver JAR file in the server lib directory which is needed by tomcat to refer the driver classes at the start-up.

Make sure you have the JDBC Drivers placed in the {tomcat.home}/lib directory. For Oracle 10g use ojdbc14_g.jar

Create a file named context.xml in <<yourwebapp>>\WebContent\META-INF directory.

Note: Resource element used to configure the connection pool has lot of configurable properties. Only base minimum properties are used above. For further information on DBCP configuration you can refer DBCP Configuration Parameters

Advertisements

Share this:

Like this:

LikeLoading...

Related

This entry was posted on Monday, December 7th, 2009 at 4:56 PM and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.