aspose file tools*
The moose likes JDBC and the fly likes calling classforname twice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "calling classforname twice" Watch "calling classforname twice" New topic
Author

calling classforname twice

Steven Rodeo
Ranch Hand

Joined: Mar 06, 2008
Posts: 72
what happens when do a classforname("jdbc...driver") twice with two different drivers and then excecute a connection
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
You can use Class.forName with as many classes as you like, JDBC drivers or others - it has no impact on JDBC functionality.


Ping & DNS - updated with new look and Ping home screen widget
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

See also this recent discussion:
http://www.coderanch.com/t/487022/JDBC/java/Which-Driver-will-used

JBoss In Action
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: calling classforname twice
 
Similar Threads
After loading many drivers how to use specific?
Connecting to Database without a DSN
Boolean || operator
I've tried everything
How Class.ForName() actually creates new object internally passed in argument ?