Hitachi

uCosminexus Application Server System Setup and Operation Guide


4.1.32 Change the business application settings (when using CUI)

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

Table 4‒17: Settings used in the example (changing the business application settings)

Item

Setup example

Web system name

MyWebSystem

File name of the J2EE application

MyApp.ear

Display name of the J2EE application

MyApp

Implement on Application Server on which you change the J2EE application settings and on which the J2EE Server operates.

  1. Edit the property of J2EE application in the cosminexus.xml, and store in the META-INF directory under Any-directory.

  2. Execute the jar command by using the command prompt, and overwrite the cosminexus.xml edited in step 1 by the J2EE application of archive format.

    The following is an example of command execution:

    jar uvf MyApp.ear-file-path -C directory-where-META-INF-directory-is-placed cosminexus.xml-file-path-under-META-INF-directory

    Specify the directory path storing the J2EE application (MyApp.ear), and the file name (MyApp.ear) in MyApp.ear-file-path. Directory where META-INF-directory-is-placed is Any-directory, when the structure of the store destination of the cosminexus.xml is as follows:

    Any-directory
     |_META-INF
     |_cosminexus.xml

    Specify the path of META-INF directory storing the cosminexus.xml in step 1 and the file name (cosminexus.xml), in cosminexus.xml-file-path-under-META-INF-directory.

  3. 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
  4. Start the command prompt on the host for allocating the J2EE server.

  5. Execute the cjreplaceapp command and deploy the recreated J2EE application again.

    The following is an example of command execution:

    cjreplaceapp MyWebSystem_J2EE01 -nameserver corbaname::192.168.100.12:900 -name MyApp -f file-path-of-recreated-J2EE-application

    Specify the path of the directory storing the recreated MyApp.ear and the file name (MyApp.ear), in file-path-of-recreated-J2EE-application.

  6. Execute the cjstartapp command, and start the J2EE application.

    The following is an example of command execution:

    cjstartapp MyWebSystem_J2EE01 -nameserver corbaname::192.168.100.12:900 -name MyApp
    Reference note

    You can change the properties of an imported J2EE application by using the property file (Application Integrated Property file) as well. For details on how to change, see 9.2 Property settings using the HITACHI Application Integrated Property File in the uCosminexus Application Server Application Setup Guide.

  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