Results 1 to 4 of 4
  1. #1
    Riyaz.hk77 is offline Member
    Join Date
    Nov 2010
    Posts
    8
    Rep Power
    0

    Default ways to load JDBC driver

    what are the different ways to load driver manager class while using jdbc, plzzzzzzzzzzzzzz explain:confused:

  2. #2
    chyrl is offline Senior Member
    Join Date
    Mar 2010
    Location
    Manila, Philippines
    Posts
    257
    Rep Power
    5

    Default

    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.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,658
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Riyaz.hk77 View Post
    what are the different ways to load driver manager class while using jdbc, plzzzzzzzzzzzzzz explain:confused:
    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

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. JDBC Driver
    By Ursula in forum New To Java
    Replies: 6
    Last Post: 08-23-2010, 05:41 PM
  2. Unable to load Oracle Driver
    By shantanu.rathore in forum NetBeans
    Replies: 1
    Last Post: 02-12-2010, 08:34 AM
  3. can't load the driver (hsqldb)
    By tomiu in forum JDBC
    Replies: 7
    Last Post: 06-09-2009, 11:23 PM
  4. load driver in javaDB
    By kulangotski in forum New To Java
    Replies: 1
    Last Post: 02-20-2009, 07:15 PM
  5. Help with JDBC driver
    By Daniel in forum JDBC
    Replies: 2
    Last Post: 07-03-2007, 08:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •