Hitachi

uCosminexus Application Server System Setup and Operation Guide


4.1.33 Changing the resource adapter settings (database connection environment) (when using CUI)

This subsection describes the tuning procedure when changing the resource adapter settings. The following table describes the settings used in the example:

Table 4‒18: Settings used in the example (changing the resource adapter settings)

Item

Setup example

Web system name

MyWebSystem

Display name of the resource adapter

DB_Connector_for_HiRDB_Type4

Name of the Connector Property file

MyDBConnectorAttr.xml

Name of the J2EE server importing the resource adapter

MyWebSystem_J2EE01

Implement on Application Server on which you change the resource adapter settings and on which the J2EE application server is running.

  1. If the system is stopped, start the command prompt on the host (192.168.100.12) for allocating the management functionality (Management Server), and execute the cmx_start_target command to start the system.

    Set all service units in the system to Ready status. Specify READY in the -mode option to set the service units to Ready status.

    The following is an example of command execution:

    cmx_start_target -m 192.168.100.12 -u cosmi_admin -p cosmi_admin_passwd -s MyWebSystem -mode READY
  2. Start the command prompt on the host for allocating the J2EE server.

  3. Execute the cjgetrarprop command to acquire the Connector Property file.

    The following is an example of command execution:

    cjgetrarprop MyWebSystem_J2EE01 -nameserver corbaname::192.168.100.12:900 -resname DB_Connector_for_HiRDB_Type4 -c acquisition-destination-file-path-of-Connector-Property-file

    Specify the directory path storing the Connector Property file and the file name (MyDBConnectorAttr.xml) in acquisition-destination-file-path-of-Connector-Property-file.

  4. Edit the Connector Property file.

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

  5. Execute the cjsetrarprop command and apply 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 DB_Connector_for_HiRDB_Type4 -c acquisition-destination-file-path-of-Connector-Property-file

    Specify the directory path storing the Connector Property file edited in step 4, and the file name (MyDBConnectorAttr.xml) in acquisition-destination-file-path-of-Connector-Property-file.

  6. Execute the cjstartrar command and start the resource adapter.

    The following is an example of command execution:

    cjstartrar MyWebSystem_J2EE01 -nameserver corbaname::192.168.100.12:900 -resname DB_Connector_for_HiRDB_Type4
  7. Start the command prompt on the host (192.168.100.12) for allocating the management functionality (Management Server), and execute the cmx_start_target command to start the system.

    Set all service units in the system to Running status. Specify ALL in the -mode option to set the service units to Running status.

    The following is an example of command execution:

    cmx_start_target -m 192.168.100.12 -u cosmi_admin -p cosmi_admin_passwd -s MyWebSystem -mode ALL -strict