After you create your JDBC provider, create data sources
to abstract the communication with the DB2® database
away from the provider. You need data sources for storing RuleApps
and Execution Object Models (XOMs).
About this task
If WebSphere® Application
Server is
used in cluster mode, you must define the data sources at node level
in the cluster not at the cluster level. For more information, see Rule Execution Server Deployment
on cluster environments
Procedure
- In the WebSphere Integrated Solutions Console,
open .
- In the Scope side panel, select
the scope that you set for the JDBC provider in Step 2: Configuring JDBC.
- Click New to create a new data source.
- Complete the following
steps to create the data source for RuleApps:
- In Step 1, enter a name for the
data source in the Data source name field and jdbc/ilogDataSource in
the JNDI name field, and click Next.
- In Step 2, select the JDBC provider
that you created in Step 2: Configuring JDBC and
click Next.
- In Step 3, enter the following
specific database properties for the data source:
- Driver type: 4.
- Database name: Your database name, for
example DSN910GP.
- Server name: Your DB2 server name.
- Port number: Your DB2 port number.
- Clear the Use this data source in container
managed persistence (CMP) option, then click Next.
- In Step 4, set up any required
security aliases and click Next. For
more information, see Step 4: Setting the component and container managed aliases for the data source.
In Step 5, a summary of the
data source is provided.
- Click Finish and Save to
save the changes to the master configuration.
- Complete the following steps to increase the default connection
pool size for the data source:
- Edit the data source and click Connection
pool properties.
- Enter the value 30 into the Maximum
connections field.
- Click OK.
Note: The
default value is 30 but you might require a larger Maximum
connections value if your WebSphere Application
Server is
running many concurrent threads.
- Create the data source for Java™ XOMs
by repeating Step 4 with
the appropriate values. The default name of the XOM data
source is jdbc/xomdatasource.
- In the side panel, open and click Data
sources.
- Select the check box next to the data source that you want
to test and click Test connection.
The status of the connection is indicated at the top.