uCosminexus Application Server, Application Setup Guide
A connection pool that is clustered is called a cluster connection pool. A cluster connection pool consists of a root resource adapter and a member resource adapter. The connection pool of a member resource adapter is called the member connection pool.
The following subsections describe how to control the operations and state for using the cluster connection pool of DB Connector:
To use a cluster connection pool, you need to setup a resource adapter that can use the cluster connection pool.
Set up the DB Connector for the cluster connection pool with the following procedure:
Note that you repeat steps 1 and 2 for the required number of member resource adapters.
The root resource adapter is directly accessed from a J2EE application, so for the deployed root resource adapter, you need to resolve the references by using the J2EE application property settings. For details, see 9.3.3 Defining resource adapter references.
You can suspend a member connection pool manually when there is a database failure or for maintenance. If the member connection pool is suspended, the processing is not performed in the case of a connection acquisition request to the root resource adapter.
You can manually restart the suspended member connection pool. In the case of a connection acquisition request to the root resource adapter, only the process for a running connection pool is performed.
For details on controlling the connection pool state, see 3.17.4 Running a clustered connection pool in the uCosminexus Application Server Common Container Functionality Guide.
The following table lists the resource adapter types and the functions that can be used:
Table 4-10 List of functions based on the resource adapter types
| Functions | Types of resource adapters | |
|---|---|---|
| Root resource adapter | Member resource adapter | |
| Connection pooling | N | D |
| Warming up of connection pool | N | Y |
| Connection sharing and association | N | Y |
| Statement pooling | N | Y |
| Cache of DataSource object | Y | N |
| Optimization of sign-on in the container management of DB Connector | N | Y |
| Connection failure detection | N | D |
| Timeout in connection failure detection | N | D |
| Connection acquisition request when connections are used up | N | D |
| Retry in acquiring connection | N | N |
| Display of connection pool information | N | Y |
| Clear connection pool | N | Y |
| Connection auto close | N | Y |
| Connection sweeper | N | Y |
| Test the connectivity | Y | Y |
| Connection pool count adjustment function | N | Y |
| Display of connection pool information | N | Y |
| Suspend connection pool# | N | Y |
| Restart connection pool# | N | Y |
| User-specified name space function of J2EE resources | Y | N |
The following table lists the resource adapter types that set the DB Connector attributes:
Table 4-11 Types of resource adapters and attribute settings
| Settings | Types of resource adapters | |
|---|---|---|
| Root resource adapter | Member resource adapter | |
| Transaction support level | N | Y |
| Feasibility of acquiring log | Y | Y |
| Database connection information | -- | Y |
| DB Connector specific settings (such as statement pool) | -- | Y |
| Security information (user name and password) | N | Y |
| Connection pool size | N | Y |
| Cluster connection pool specific settings | Y | -- |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.