If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Connection Pool implementation for Java servlets

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-27-07, 08:33
robin.mcentire robin.mcentire is offline
Registered User
 
Join Date: Sep 2007
Posts: 2
Connection Pool implementation for Java servlets

I'm building a web app that uses servlets to connect to a mysql database. I'm looking for a solid implementation of a connection pool that I can use. I don't have access to the Tomcat server configuration, so I'm looking for a library that implements the connection pool from within the servlet itself.

Any suggestions?

Thanks in advance!

robin
Reply With Quote
  #2 (permalink)  
Old 09-27-07, 09:08
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
What does this question have to do with MySQL? This should be moved to the Java forum.

Tomcat contains the Apache DBCP (http://commons.apache.org/dbcp/) connection pool, so you should be able to directly access that. If not, you can download the library from their homepage.
Reply With Quote
  #3 (permalink)  
Old 09-27-07, 10:51
robin.mcentire robin.mcentire is offline
Registered User
 
Join Date: Sep 2007
Posts: 2
I'm connecting to a mysql database, but you're probably right -- the connection pool is generic wrt the particular DB being used.
Reply With Quote
  #4 (permalink)  
Old 09-28-07, 02:44
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
C3p0

You may use also C3P0 (hibernate use it.)
Dimis
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On