• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC: connection pooling

 
shanmukhan battinapati
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can any body explain the following:

"In releases prior to JDBC 2.0 every database session requires a new connection and login even if the previous connection and login used the same table and user account. If you are using a JDBC release prior to 2.0 and want to improve performance, you can cache JDBC connections instead."

URL: http://java.sun.com/developer/onlineTraining/Programming/JDCBook/conpool.html

Thanks & Regards
Shanmukhan.B
 
Joe Ess
Bartender
Posts: 9370
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JDBC API changed in big ways between version 1 and 2 so they require different caching strategies.
One word of warning, the book you are reading was written over 10 years ago. The JDBC API alone has gone through 2 more major revisions. The Java API has had 4 major revisions.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36007
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you know we have a JDBC forum? Moving there.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!