File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Connection Pool Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Connection Pool" Watch "Connection Pool" New topic
Author

Connection Pool

rohit kuttappan
Greenhorn

Joined: Oct 10, 2000
Posts: 4
Hello all. I need help with connection pools. I'm developing a simple shopping cart application on webappcabaret, which uses MySql as database. I need to know wheter MySql supports connection pools and how to construct them. Please help.
Rohit
Arunagiri, Shanmugham
Ranch Hand

Joined: Jan 23, 2001
Posts: 46
Hi Rohit,
I think u can implement the SingleThreadedModel Interface for using shared resource i.e., it will create an instance of connection by itself on each request, so that u will not get the problem of connection used already by 1 request.
Another way is to code the servlet program to handle connection pooling with thread. This program of handling connection pooling is also available in Jasen Hunter's Java Servlet book.

Hope this helps u a little.
Arun
Sun Certified Programmer for Java 2 Platform.

Sun Certified Programmer for Java2 Platform
 
 
subject: Connection Pool
 
Threads others viewed
Connection pooling problem
Sun Studio 5
mySQL Data Source??
Connection pool for XADataSource
How to handle transactions when two different databases are involved.
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture