| Author |
Why Loading of Driver is required in JDBC
|
Abhishek Rath
Ranch Hand
Joined: Nov 22, 2007
Posts: 33
|
|
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: 14672
|
|
|
From the JDBC tutorial : Establishing a connection.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Abhishek Rath
Ranch Hand
Joined: Nov 22, 2007
Posts: 33
|
|
|
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 -
|
 |
 |
|
|
subject: Why Loading of Driver is required in JDBC
|
|
|