File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 14688
    
  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 -
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why Loading of Driver is required in JDBC