Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Re:Oracle Thin Driver and Class.forName

Re: Re:Oracle Thin Driver and Class.forName

From: Adrian Havill <havill_at_threeweb.ad.jp>
Date: 1997/11/13
Message-ID: <64f0gd$jfp@news.osk.threewebnet.or.jp>#1/1

>I'd like to know why Oracle recommends using registerDriver when JDBC
>standard recommends using Class.forName.

Oracle doesn't recommend using registerDriver-- Javasoft does. According to the Java Developer Connection bug database, there's a bug in forClass() in 1.1.x (doesn't say whether 1.1.4 fixed it or not) where a race condition can result depending on timing and circumstances.

Thus, you should use the "registerDriver()" (Javasoft's recommended workaround) method for ALL drivers, not just Oracle's. (until they fix forName()). Received on Thu Nov 13 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US