Versions Compared

Key

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

...

This article provides two alternatives to deploy the connection pool: using the Geronimo Administration Console and using the command line option.

...

Adding DB2 drivers to the repository

To add the DB2 drivers and license to the Geronimo repository you are required to place the files in a particular directory structure. You will normally have two or three files to add to the repository. These files are:

...

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

...

Creating 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 Using the Geronimo database pool wizard.

...

Click Deploy. You will have DB2_ds listed in the Database Pools portlet.

...

Deploying a database connection pool using the command line

As an alternative to the wizard, you can create a deployment plan manually and deploy it using the command line based deployer tool. To use this option create a db2-plan.xml file and copy the content of the following example.

...

Right after the moduleId comes the definition of the dependencies. In this particular case you can find three <dep:dependency> blocks pertaining to the DB2 JDBC driver and the license jar. The last "big" block in this plan is the <resourceadapter> where the connection paramenters such as driver, user and password, connection URL, etc. are defined.

...

Deploying the datasource

To the deploy the DB2 datasource you just created, run the following command from the <geronimo_home>\bin directory.

...