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

Setting the Environment


Install the database that requires a JDBC connection. The procedure to install the databases is discussed in Chapter 1. Download the JDBC driver for the database, if WebLogic does not have a driver for the DBMS. We will configure the JDBC connectivity with the Oracle database 10g. Copy the Oracle database JDBC driver JAR file ojdbc14.jar from<Oracle>\jdbc\lib directory to the<weblogic91>\samples\domains\wl_server\lib directory,<Oracle> being the Oracle database 10g installation directory and<weblogic91> being the WebLogic Server 9.1 installation directory. JAR files in the server lib directory get automatically added to the classpath, on server startup. If a later version is required, replace it in the lib directory. Alternatively, you can edit the<weblogic91>\samples\domains\wl_server\bin\startWebLogic script by adding a driver JAR file to the classpath argument constructed by the script. Put the JAR file ahead of weblogic.jar in the...