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
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: 42932
    
  68
You can use Class.forName with as many classes as you like, JDBC drivers or others - it has no impact on JDBC functionality.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

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

JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling classforname twice