Two Laptop Bag*
The moose likes Tomcat and the fly likes datasource - collection pooling w/Tomcat 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "datasource - collection pooling w/Tomcat 5" Watch "datasource - collection pooling w/Tomcat 5" New topic
Author

datasource - collection pooling w/Tomcat 5

Dave Bosky
Ranch Hand

Joined: Dec 16, 2003
Posts: 72
Could someone provide an example of using a datasource with connection pooling? I've got the datasource set up correctly and is working fine but I need to use connection pooling and have no idea of where to begin.

I'm new to the Java/Tomcat world and but connection pooling seems pretty common. Examples...please..

Thanks,
Dave
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

so what you have is a non-pooled DataSource ?

Have you tried the example in Tomcat docs ?

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

The section entitled 'Database Connection Pool (DBCP) Configurations' will be of particular interest to you.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: datasource - collection pooling w/Tomcat 5
 
Similar Threads
Connection Pooling
Connection Pooling samples
DataSource Connection Pooling
tomcat related query
Transactions in Tomcat