This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "jdbc" Watch "jdbc" New topic
Author

jdbc

Soumayajit Hazra
Greenhorn

Joined: Nov 13, 2006
Posts: 8
what is the difference in using Class.forName or DriverManager.registerDriver(...)
Wei Dai
Ranch Hand

Joined: Jun 22, 2005
Posts: 86
>what is the difference in using Class.forName or >DriverManager.registerDriver(...)
Usually in the static init driver code of Class.forName will call DriverManager.registerDriver(...) meothod. You should use Class.forName.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: jdbc