Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection closing - pooling, without pooling.

 
Makeshkumar Subramaniam
Greenhorn
Posts: 21
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
 
Shahzad Masud
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
http://www.javaworld.com/javaworld/jw-10-2000/jw-1027-pool.html
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/conpool.html
http://webdevelopersjournal.com/columns/connection_pool.html
http://msdn.microsoft.com/en-us/library/8xx3tyca.aspx
http://www.webopedia.com/TERM/C/connection_pool.html
http://dev.mysql.com/tech-resources/articles/connection_pooling_with_connectorj.html
http://www.onjava.com/pub/a/onjava/2006/04/19/database-connection-pooling-with-tomcat.html

Hope it helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic