Book Image

JDBC 4.0 and Oracle JDeveloper for J2EE Development

Book Image

JDBC 4.0 and Oracle JDeveloper for J2EE Development

Overview of this book

Table of Contents (20 chapters)
JDBC 4.0 and Oracle JDeveloper for J2EE Development
Credits
About the Author
About the Reviewer
Preface

JDBC 4.0 Version


The OC4J embedded in JDeveloper 10g or JDeveloper 11g does not implement JDBC 4.0 specification. The new features in JDBC 4.0 may be availed of in a later version of JDeveloper that supports JDBC 4.0 specification.

In the JDBC 4.0 version of the web application, add the Oracle database 11g JDBC 4.0 drivers JAR file, ojdbc6.jar, to the j2ee/home/applib directory, which is in the runtime class path of a web applications running in OC4J server. Also add ojdbc6.jar to the project libraries by selecting Tools | Project Properties and subsequently selecting Libraries | Add Jar/Directory. For the JDBC 4.0 drivers we need to set the JDK version to JDK 6.0. Select the project node in Applications-Navigator and select Tools | Project Properties. Select the Libraries node in the Project Properties window and click on J2SE Version field's Change button to set the JDK version. In the Edit J2SE Definition window, click on New. In the Create J2SE window, select a JDK 6.0 J2SE Executable...