Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Re:Oracle Thin Driver and Class.forName
>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
![]() |
![]() |