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

Configuring JBoss Server with Oracle Database


Oracle is a leading enterprise database used for its performance and reliability. To configure JBoss 4.0 with Oracle, we need to put Oracle's driver classes in the runtime classpath of the JBoss application server. Copy Oracle database 11g JDBC 4.0 driver's JAR file, ojdbc6.jar, to the C:\JBoss\jboss-4.0.5.GA\server\default\lib directory. We also need to set the JAVA_HOME environment variable to JDK 6.0.

To use Oracle's transactional (XA) data source, copy /docs/examples/jca/oracle-xa-ds.xml to the /server/default/deploy directory. The directory paths are relative to the JBoss application server installation directory. To configure with the non-XA data source, copy /docs/examples/jca/oracle-ds.xml to the /server/default/deploy directory and modify the oracle-ds.xml configuration file. The<driver-class/> and<connection-url/> settings for Oracle would vary with the type of driver used. The<driver-class/> and<connection-url...