File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases 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 and Relational Databases
Bookmark "calling classforname twice" Watch "calling classforname twice" New topic

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

Joined: Mar 22, 2005
Posts: 42959
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

Joined: May 14, 2008
Posts: 5852

See also this recent discussion:

JBoss In Action
I agree. Here's the link:
subject: calling classforname twice
It's not a secret anymore!