Results 1 to 4 of 4
Thread: ways to load JDBC driver
- 11-06-2010, 05:19 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 8
- Rep Power
- 0
- 11-06-2010, 05:31 PM #2
Senior Member
- Join Date
- Mar 2010
- Location
- Manila, Philippines
- Posts
- 257
- Rep Power
- 4
Kindly refrain from multi-posting. Java Forums
You don't have to be in a rush...Last edited by chyrl; 11-06-2010 at 05:39 PM.
Every project, package, class, method, variable, syntax, algorithm, etc.
are registered in my memory bank. Thanks to this thread.
- 11-06-2010, 05:37 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
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.
kind regards,
Jos
-
Multiposted thread locked. I've moved JosAH's post to the active thread.
OP, please do NOT multipost.
Similar Threads
-
JDBC Driver
By Ursula in forum New To JavaReplies: 6Last Post: 08-23-2010, 05:41 PM -
Unable to load Oracle Driver
By shantanu.rathore in forum NetBeansReplies: 1Last Post: 02-12-2010, 08:34 AM -
can't load the driver (hsqldb)
By tomiu in forum JDBCReplies: 7Last Post: 06-09-2009, 11:23 PM -
load driver in javaDB
By kulangotski in forum New To JavaReplies: 1Last Post: 02-20-2009, 07:15 PM -
Help with JDBC driver
By Daniel in forum JDBCReplies: 2Last Post: 07-03-2007, 08:16 PM


LinkBack URL
About LinkBacks


Bookmarks