This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi amit, Actually class.forName is the JDBC API in which u can register ur driver in the memory to connect into the Database. Even u can register more than one driver also. Apart from this, u can also register using the oracle driver using the DriverManager class. DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); By doing the above also u can register your driver.
You can also define a "system" property (using the '-D' command-line option), but I forget the name of it. I think it is "jdbc.driver". In any case, you can find details in the Getting Started Guide. Good Luck, Avi.
Yes, you can instantiate the driver and register it as follows: DriverManager.registerDriver(new oracle.jdbc.OracleDriver()); Yet another way is to use the DataSource API. @D [ August 02, 2003: Message edited by: David Gallardo ]
Co-author: "Eclipse in Action: A guide for the Java developer"<br />Author: "Java Oracle Database Development"