The following figure shows the procedure for resource adapter settings for connecting to a database when the connection pool is clustered.
Figure 3-12 Procedure for resource adapter settings in connection pool clustering
![[Figure]](figure/zu031100.gif)
A description of points 1 to 10 in the figure is as follows:
- Use the server management commands to import the member resource adapters.
Use the cjimportres command to import the member resource adapters.
For details on the resource adapters to be imported, see 3.3.2 Types of resource adapters.
- Use the server management commands to deploy the member resource adapters.
Use the cjdeployrar command to deploy the member resource adapters.
- Use the server management commands to define the member resource adapter properties.
Use the cjgetrarprop command to obtain the HITACHI Connector Property file, edit the file, and then use the cjsetrarprop command to apply the edited content.
The items that you can set up by defining the member resource adapter and root resource adapter properties differ. For details on the items defined in the properties that can be set for the member resource adapters and root resource adapter, see 3.17 Functionality for connection pool clustering.
For details on the resource adapter properties specified for the functionality to be used, see the following locations:
- Use the server management commands to implement the connection test for the member resource adapters.
Use the cjtestres command to implement the connection test for the member resource adapters.
For details on the content to be verified in the connection test for the member resource adapters, see 3.18 Connection test for resources.
The steps from 1 to 4 are repeated for the number of member resource adapters only.
- Use the server management commands to start the member resource adapters.
To implement the connection test of the root resource adapter, start the member resource adapters first. Use the cjstartrar command to start the member resource adapters.
- Use the server management commands to import the root resource adapter.
Use the cjimportres command to import the root resource adapter.
For details on the resource adapters to be imported, see 3.3.2 Types of resource adapters.
- Use the server management commands to deploy the root resource adapter.
Use the cjdeployrar command to deploy the root resource adapter.
- Use the server management commands to define the root resource adapter properties.
Use the cjgetrarprop command to obtain the HITACHI Connector Property file, edit the file, and then use the cjsetrarprop command to apply the edited content.
- Use the server management commands to implement the connection test for the root resource adapter.
Use the cjtestres command to implement the connection test for the root resource adapter.
For details on the content to be verified in the connection test for the root resource adapter, see 3.18 Connection test for resources.
- Use the server management commands to stop the member resource adapters.
After you implement the connection test for the root resource adapter, stop the member resource adapter. Use the cjstoprar command to stop the member resource adapters.
For details on the operations with the server management commands, see 3. Basic Operations of the Server Management Commands in the uCosminexus Application Server Application Setup Guide. Also, for details on the commands, see 2.4 Resource operation commands used with the J2EE server in the uCosminexus Application Server Command Reference Guide. For details on the property files, see 4. Property Files Used for Setting Up the Resources in the uCosminexus Application Server Application and Resource Definition Reference Guide.
- Note
- To cluster a connection pool, you must resolve the references from the J2EE application to the root resource adapter. When you use the root resource adapter to define the J2EE application properties, resolve the references from the J2EE application to the root resource adapter.