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 Connection closing - pooling, without pooling. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Connection closing - pooling, without pooling." Watch "Connection closing - pooling, without pooling." New topic

Connection closing - pooling, without pooling.

Makeshkumar Subramaniam

Joined: Aug 09, 2008
Posts: 21

I am pretty confused about closing connection with Connection pooling and without connection pooling (direct connection ). can there be anybody who would explain me the difference between the two ? (I'm using oracle 10g).

Thanks in advance.


[URLyBird1.1.1 - > just started]
Shahzad Masud

Joined: Oct 18, 2007
Posts: 11
When you are using a connection pool, then it contains an array or collection of pre-build connections. In order to use the connection, we borrow connection from the pool and after use we return the connection back. But in normal connection, we build it at the time of use and then close.

Some references for you

Hope it helps.
I agree. Here's the link:
subject: Connection closing - pooling, without pooling.
It's not a secret anymore!