File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes calling classforname twice Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JDBC
Reply Bookmark "calling classforname twice" Watch "calling classforname twice" New topic
Author

calling classforname twice

Steven Rodeo
Ranch Hand

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

This message was edited 1 time. Last update was at by Bear Bibeault

Ulf Dittmer
Marshal

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


Android appsImageJ pluginsJava web charts
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4489

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

This message was edited 1 time. Last update was at by Peter Johnson


JBoss In Action
 
 
subject: calling classforname twice
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com