Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Move to Connection Pooling

 
Frank Daly
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on how many concurrent requests you are getting and how long the connection is used per request.
 
saradhi pantra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can any one explain how to create Connection pool.
Thanks in advance....

Regards
Satish
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
www.coreservlets.com has a very good ConnectionPool class with source. The author is Marty Hall. Please check it out.
regds
maha anna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic