This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes Why Loading of Driver is required in JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Why Loading of Driver is required in JDBC" Watch "Why Loading of Driver is required in JDBC" New topic
Author

Why Loading of Driver is required in JDBC

Abhishek Rath
Ranch Hand

Joined: Nov 22, 2007
Posts: 38
Hi

Can you please clarify the following points

1.Why we need to register the drivers in JDBC?
2.What is the alternative of class.forName
3.What is the use of DriVerManager class?

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

From the JDBC tutorial : Establishing a connection.


[My Blog]
All roads lead to JavaRanch
Abhishek Rath
Ranch Hand

Joined: Nov 22, 2007
Posts: 38
Thanks .However without using datasource is there a alternative way for cass.forname()?
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Whatever way you 'touch' the Driver class is good as long as it makes the classloader initializes it.


JDBCSupport - An easy to use, light-weight JDBC framework -
 
wood burning stoves
 
subject: Why Loading of Driver is required in JDBC