The answer to this is simple: Oracle's drivers aren't JDBC 2.0 compliant.
How do you think you can use the JDBC 2.0 API, even if you did get it to
compile on 1.1.x, if the drivers you want to use aren't JDBC 2.0 compliant?
Oracle's drivers for 8i meet the 1.22 specification with extensions that
implement SOME of the JDBC 2.0 functionality.
Rule of thumb: Just because it compiles doesn't mean it's gonna run ;->
Besides, the JDBC 2.0 implementation provided by Sun Microsystems is a
REFERENCE implementation. It is up to the individual database vendors to
provide their own implementations of the API in their drivers.
Later,
Chris
--------------------------------------
Chris Parkerson
Software Engineer, Tools Group
Resident ObjectForms Masochist ;->
Object Design, Inc.
[EMAIL PROTECTED]
--------------------------------------
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Xizhen Wang
> Sent: Tuesday, June 29, 1999 4:52 AM
> To: [EMAIL PROTECTED]
> Subject: JDBC 2.0
>
>
> Hi! I found I can compile JDBC 2.0 API with JDK1.1.8, but when I use it
> in a servlet to access Oracle (thin), it does not work. Can anyone tell
> me how jdbc2.0 is supported? I am wondering why i can compile, but i
> cannot run it?
>
> thanks!
>
> __________________________________________________________________
> _________
> To unsubscribe, send email to [EMAIL PROTECTED] and include
> in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html