ways to load JDBC driver
what are the different ways to load driver manager class while using jdbc, plzzzzzzzzzzzzzz explain:confused:
Kindly refrain from multi-posting. Java Forums
You don't have to be in a rush...
It depends on the driver and its version. Old drivers had to be instantiated, e.g. new MyDriver(); and you had to register them at the DriverManager. Later on you just had to mention the class as in ClassForName("foo.bar.MyDriver") and the driver would load and register itself. Again a bit later the DriverManager took a more active role and would read the "jdbc.drivers" property for available drivers and preload them. Nowadays the DataSource is the big hype. Read all about it in its API documentation.
Originally Posted by Riyaz.hk77
Multiposted thread locked. I've moved JosAH's post to the active thread.
OP, please do NOT multipost.