Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With the drivers and license files installed you can now create a new database connection pool.

Create a database connection pool using the wizard from the Geronimo Administration Console

From the Geronimo Administration Console select Database Pools and create a new pool by clicking on Using the Geronimo database pool wizard.

On Step 1 of the create database pool wizard enter the pool name and database type as illustrated in the following figure and then click Next.

Image Added

On Step 2 leave the JDBC Driver Class: field by default (com.ibm.db2.jcc.DB2Driver). If you click on the Driver JAR: pull-down menu you should now see the three com.ibm/db2... jars you copied in the repository. Since Geronimo v1.1 only allow you to select ONE jar file from this menu select the first jar on the list, com.ibm/db2jcc/8.1.8/jar which is the driver itself. You will add manually the license jars in the next steps.

Enter the remaining connection information as shown in the following figure. For this example the default db2admin user and password was used and a SAMPLE database was created via the DB2 Control Center.

Image Added

Click Next.

Leave the options on Step 3 by default, you should see the message Driver Status: Loaded Successfully.

Image Added

Click on Test Connection, you should see a confirmation message that you are connected to DB2.

Image Added

Click on Deploy. You should now have DB2_ds listed in the Database Pools portlet.

Image Added