aspose file tools
The moose likes JDBC and the fly likes Move to Connection Pooling Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Move to Connection Pooling" Watch "Move to Connection Pooling" New topic
Author

Move to Connection Pooling

Frank Daly
Ranch Hand

Joined: Mar 31, 2000
Posts: 139
Hi
I have a servlet which enables access to a mysql database for about 200 users. It's not heavily used. I currently reuse a single database connection which has worked fine. Have i just been lucky and should i implement a connection pool?
frank
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Depends on how many concurrent requests you are getting and how long the connection is used per request.


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
saradhi pantra
Greenhorn

Joined: Dec 03, 2000
Posts: 2
hai,
for ur case if at least 200 users are continuously access ur site at any time u can use connection pooling .otherwise it is not
recommended.
[This message has been edited by saradhi pantra (edited December 03, 2000).]
satishind Reddy
Ranch Hand

Joined: Oct 17, 2000
Posts: 33
Hi,
Can any one explain how to create Connection pool.
Thanks in advance....

Regards
Satish
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
www.coreservlets.com has a very good ConnectionPool class with source. The author is Marty Hall. Please check it out.
regds
maha anna
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Move to Connection Pooling
 
Similar Threads
connection not closed
JDBC Connection Pooling Framework
JDBC connection in Java Bean
JDBC connection in Java Bean
Problem adding JComboBox to JFrame