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 a Data Source


We will configure a JDBC data source, to retrieve data from the DB2 database. The JDBC Provider that we have already configured, supplies the driver class for the data source. The default driver class name is com.ibm.db2.jcc.DB2ConnectionPoolDataSource. Another driver class can be specified instead of the default. To configure a new data source, select the JDBC provider, DB2 Universal JDBC Driver Provider.

Click on the Datasources link in the Additional Properties header.

A table of data sources is displayed. Now, click on New to add a new data source.

In the Create a data source window, specify a data source name and a JNDI name. J2EE connector authentication data entries are used to login to a database, by a JDBC data source. Connector authentication data entries define the database access credentials. Click on create a new J2C authentication alias link to create a Component-managed authentication alias.

A table of J2C authentication data entries is displayed...