4.1.27 Setting resource adapters other than DB Connector (when using CUI)
This subsection describes the setup procedure when using a resource adapter other than DB Connector. Implement these settings on the host for allocating the J2EE server. The following table describes the settings used in the example.
Item |
Setup example |
---|---|
Name of the resource adapter file |
MyResourceAdapter.rar |
Display name of the resource adapter |
MyResourceAdapter |
Name of the Connector Property file |
MyResourceAdapter.xml |
Name of the J2EE server importing the resource adapter |
MyWebSystem_J2EE01 |
For details on the types of available RAR files and their proper usage, see 3.3.2 Types of resource adapters in the uCosminexus Application Server Common Container Functionality Guide.
- Organization of this subsection
(1) Setting a resource adapter
-
Start the command prompt on the host for allocating the J2EE server.
-
Execute the cjimportres command for importing the resource adapter to the J2EE server.
The following is an example of command execution:
cjimportres MyWebSystem_J2EE01 -nameserver corbaname::192.168.100.12:900 -type rar -f MyResourceAdapter.rar-file-path
Specify the directory path storing the MyResourceAdapter.rar and the file name (MyResourceAdapter.rar) in MyResourceAdapter.rar-file-path.
-
Execute the cjdeployrar command for deploying the resource adapter on the J2EE server.
The following is an example of command execution:
cjdeployrar MyWebSystem_J2EE01 -nameserver corbaname::192.168.100.12:900 -resname MyResourceAdapter
(2) Acquiring and editing the Connector Property file
-
Start the command prompt on the host for allocating the J2EE server.
-
Execute the cjgetrarprop command and acquire the Connector Property file.
The following is an example of command execution:
cjgetrarprop MyWebSystem_J2EE01 -nameserver corbaname::192.168.100.12:900 -resname MyResourceAdapter -c acquisition-destination-file-path-of-Connector-Property-file
Specify the directory path storing the Connector Property file and the file name (MyResourceAdapter.xml) in acquisition-destination-file-path-of-Connector-Property-file.
-
Edit the Connector Property file.
Edit the necessary items, such as the settings for connecting to the database, in the acquired Connector Property file.
-
Execute the cjsetrarprop command for applying the edited Connector Property file to the resource adapter.
The following is an example of command execution:
cjsetrarprop MyWebSystem_J2EE01 -nameserver corbaname::192.168.100.12:900 -resname MyResourceAdapter -c acquisition-destination-file-path-of-Connector-Property-file
Specify the path of the directory storing the Connector Property file edited in step 3, and the file name (MyResourceAdapter.xml) in acquisition-destination-file-path-of-Connector-Property-file.