So the "Class.forName" call is ten times faster than the "DriverManager.registerDriver()" call? Is that one tenth of a sec vs a sec thing?
Class.forName loads the JDBC driver class, then the static initializer part of the JDBC driver registers itself with DriverManager. DriverManager can manage mutiple drivers, when using DriverManager it will load the property jdbc.driver from say "~/.hotjava/properties" if there is one. Also, one creates a new instances of the JDBC driver to register with DriverManager where Class.forName doesn't. Richard Ji -----Original Message----- Sent: Thursday, June 26, 2003 6:10 PM To: Multiple recipients of list ORACLE-L Approximately 10 times slower. Mladen Gogala Oracle DBA Phone:(203) 459-6855 Email:[EMAIL PROTECTED] -----Original Message----- Sent: Thursday, June 26, 2003 5:15 PM To: Multiple recipients of list ORACLE-L What sort of differences? Is the DriverManager method slower than Class.forName()? -----Original Message----- Sent: Thursday, June 26, 2003 3:35 PM To: Multiple recipients of list ORACLE-L Hi List! I'm not a Java programer so please, forgive me my (blissful) ignorance. My developers are experiencing wild differences when connecting using driverManager.registerDriver vs. Class.forName (dynamic loading). Does anybody have any clue why is that? Any articles about registering vs. loading? Thanks! Mladen Gogala Oracle DBA Phone:(203) 459-6855 Email:[EMAIL PROTECTED] -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Gogala, Mladen INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Richard Ji INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Gogala, Mladen INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Richard Ji INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).