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


In the JDBC 4.0 version of the JasperReports application, to generate a PDF report, use the Oracle database 11g JDBC 4.0 drivers JAR file, ojdbc6.jar, instead of the Oracle JDBC library. JDBC 4.0 drivers require JDK 6.0. Therefore, set the J2SE Version to JDK 6.0 in the Project Properties window. To modify the J2SE Version, select the Libraries node in Project Properties window. Click on the Change button for the J2SE Version field. In the Edit J2SE Definition window, click on New to create a J2SE definition for JDK 6.0. In the Create J2SE window, select a JDK 6.0 Java Executable and click on OK. Select the JDK 6.0 definition in Edit J2SE Definition window and click on OK. The J2SE Version gets set to JDK 6.0 in Project Properties window. Click on OK in Project Properties.

The JDBC 4.0 features can be availed in a JDeveloper version that supports JDBC 4.0 in the embedded OC4J. JDBC 4.0 provides enhanced connection management with connection state tracking and connection...