IBM


14.1.6 Creating a DB2 JDBC provider and data source

Enhanced EAR file users: If you are using an Enhanced EAR file, the JDBC provider, data source, and J2C authentication entry can be defined at packaging time. See Configure a DB2 JDBC provider.

The Plants by WebSphere sample application uses a relational database, via entity beans, to store information. To access this database, define a data source and then associate it with the entity beans. The Plants by WebSphere sample application is configured for Cloudscape by default. In Chapter 13, Packaging applications, however, we modified the Plants by WebSphere application to run against a DB2 database instead. We will now create the DB2 JDBC provider, data source, and JAAS authentication alias required to run against DB2.

For detailed information about JDBC providers and data sources, refer to 6.2, JDBC resources.


Redbooks ibm.com/redbooks

Next