This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Connection pooling Examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Connection pooling Examples" Watch "Connection pooling Examples" New topic
Author

Connection pooling Examples

Tarik Ansari
Ranch Hand

Joined: Dec 31, 2008
Posts: 50
Hello,

Can somebody explain what does connection pooling mean by simple samples? i want to learn it in simpler terms, google search gives results which makes me more confused.

thanks in advance
tarik
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3018
    
  35

Pooling means using some cache entries for the purpose of reusing. In particular for the connection pooling, it stores the connection (eg: database connection) in a 'pool' which is cached. With that case, we can reuse the same connection later without reconnecting.


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
bala nannaka
Ranch Hand

Joined: Apr 02, 2007
Posts: 49
Creating or opening the connection for each request is a costliest operation.Costliest in means of consuming the time for every request is a serious problem.to overcome this creating the set of connections(pool of connections) at server startup time and make them availble to the application is a good solution
Tarik Ansari
Ranch Hand

Joined: Dec 31, 2008
Posts: 50
Thanks for your replies..

i need sample exercise of connection pooling from where i can learn and obviously make more confidence.

Thanks
 
wood burning stoves
 
subject: Connection pooling Examples
 
Similar Threads
Connection Pooling
Questions on EJB
pooling in tomcat 6.x
servlet destroy method and session
Driver Loading