Hitachi

uCosminexus Application Server Operation, Monitoring, and Linkage Guide


17.6.8 Setting Application Server

When setting Application Server, deploy Application Server in a cluster configuration using the management portal and the commands of the HA monitor. Also, set up the logical server and distribute the configuration information, and then import J2EE applications and resource adapters. Following is the procedure to set Application Server:

  1. Start Management Server.

    For starting the Management Server, see 4.1.1 Procedure for starting a system and 4.1.2 Methods of starting a system in the uCosminexus Application Server Management Portal User Guide.

  2. In Node1 and Node2, execute the monbegin command of the HA monitor, start Application Server of the active node as the executing node and set Application Server of the spare node to the standby state.

    • Command execution example in Node1

      Execute # monbegin CAP, and then start the active node Node1.

    • Command execution example in Node2

      Execute # monbegin CAP, and then set the spare node Node2 to the standby status.

  3. With the management portal, set up the J2EE server of the active node Node1.

    Set up the J2EE server with the Setup screen of 'Configuration definition of management domain'. For details on the operating procedures and screens when using the management portal, see the uCosminexus Application Server Management Portal User Guide.

  4. Using the management portal, distribute the information set in the J2EE server to the active node Node1.

    Distribute the information set in the J2EE server to the active node Node1 with the Distribution of Setup Information screen of 'Environment setup of a logical server'.

  5. Use the server management commands to import the J2EE application and resource adapter in the J2EE server of the active node Node1. Set and start the imported J2EE application and resource adapter.

    For operations of the server management commands, see 3. Basic Operations of Server Management Commands in the uCosminexus Application Server Application Setup Guide.

    Execute the server management commands after starting the J2EE server and its prerequisite processes. Once you have completed the operations with server management commands, stop the server management commands.

  6. Execute the monswap command of the HA monitor in Node1 to switch nodes.

    • Command execution example in Node1

      Execute # monswap CAP and switch the nodes with the server identification name CAP. The spare node Node2 is started and the active node Node1 is set to the standby state.

  7. Execute step 3. to step 5. in the spare node Node2.

    As the settings specified in the spare node are exactly the same as the active node, the setup procedure and contents are the same as the active node.

  8. Execute the monswap command of the HA monitor in Node2, switch nodes and then return to the normal operation state.

    • Command execution example in Node2

      Execute # monswap CAP, and switch the nodes with the server identification name CAP. The active node Node1 is started and the spare node Node2 is set to the standby state.