This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes JDBC: connection pooling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC: connection pooling" Watch "JDBC: connection pooling" New topic
Author

JDBC: connection pooling

shanmukhan battinapati
Greenhorn

Joined: Feb 24, 2010
Posts: 8
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

Joined: Oct 29, 2001
Posts: 8877
    
    8

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30392
    
150

Did you know we have a JDBC forum? Moving there.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC: connection pooling