Hitachi

uCosminexus Application Server System Setup and Operation Guide


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.

Table 4‒13: Settings used in the example (Settings for resource adapters other than DB Connector)

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

  1. Start the command prompt on the host for allocating the J2EE server.

  2. 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.

  3. 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

  1. Start the command prompt on the host for allocating the J2EE server.

  2. 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.

  3. Edit the Connector Property file.

    Edit the necessary items, such as the settings for connecting to the database, in the acquired Connector Property file.

  4. 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.

(3) Connection test of the resource adapter

  1. Execute the cjtestres command to check the connections of the resource adapter.

    The following is an example of command execution:

    cjtestres MyWebSystem_J2EE01 -nameserver corbaname::192.168.100.12:900 -resname MyResourceAdapter