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


OC4J server embedded in JDeveloper 10g or JDeveloper 11g does not support the JDBC 4.0 specification. In a later version of JDeveloper that supports JDBC 4.0 specification, the new features in JDBC 4.0 may be used with an XSQL application. To use the JDBC 4.0 features we would need to configure the JDBC connection with Oracle database using the Oracle database 11g JDBC 4.0 drivers JAR file, ojdbc6.jar. As JDBC 4.0 drivers required JDK 6.0, set the J2SE Version to JDK 6.0 by selecting Tools | Project Properties and subsequently selecting Libraries. The JDK version may be set in the J2SE Version field. With the JDBC 4.0 driver we may use the connection management features such as connection state tracking. Connection state tracking is implemented by the connection pool manager using the isValid() method of the Connection interface. The connection pool manager determines if a connection in a connection pool is unusable by invoking the isvalid() method on the connection. If...