File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes why need connection pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "why need connection pool" Watch "why need connection pool" New topic

why need connection pool


Joined: May 07, 2002
Posts: 1
very stupid question. But I just can't answer it?
who can help me or tell me where to find info about the difference between pool and Divermanage
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Tanel Alumae

Joined: Aug 26, 2002
Posts: 14
Connection pooling is usually done to improve application performance and decrease the load on the database.
DriverManager is only responsible for creating new connection to the database. As you probably know, creating a connection and logging in to the database is relatively time-consuming. Therefore, connection pool is often used. A connection pool is like a facade to the DriverManager. Application can use the Connection Pool to ask for a connection to database. Connection Pool caches the connections to the database. This means that once an application ends using a database connection (e.g. at the end of transaction), Connection Pool does not release it, but reuses it when the application asks for the connection again. Anyway, you can find much information on this topic for example here.
[ September 09, 2002: Message edited by: Tanel Alumae ]

RefactorIT - Java Refactoring Tool<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: why need connection pool
It's not a secret anymore!