13.8.11 Reloading the J2EE applications using commands

This subsection describes how to replace the J2EE applications by reloading.

Reload is a functionality with which you can replace an exploded archive-format J2EE application with fewer steps. With the replacement of J2EE applications by reloading, operations such as stopping and deleting an existing J2EE application, and archiving, importing, and restarting the replaced J2EE application, become unnecessary. This functionality is especially effective in system operations requiring frequent maintenance because you can update J2EE applications only by updating and reloading the class files.

Note that settings must be specified in advance for replacing J2EE applications by reloading. For details on how to specify the settings, see 13.8.12 Settings for detecting updates and reloading J2EE applications.

You can use the server management commands (cjreloadapp command) to replace J2EE applications by reloading. For details on the cjreloadapp command, see 10.5.2 Applications in the exploded archive format in the uCosminexus Application Server Application Setup Guide.

To reload:

  1. Edit or create a Java source file according to the maintenance contents, and compile into a class file.
  2. Reload the J2EE application.
    Execute the cjreloadapp command. The format and example of execution is as follows.
    Format of execution

    cjreloadapp J2EE-server-name -name J2EE-application-name

    Example of execution
    cjreloadapp MyServer -name App1
    Note
    To delete an application that could not be reloaded, stop and delete the application after it is successfully reloaded, or delete the application after restarting the J2EE server.