Hitachi

uCosminexus Application Server Operation, Monitoring, and Linkage Guide


18.5.8 Setting Application Server

In the Application Server settings, you use the Management Server and HA monitor commands to deploy Application Server in the cluster configuration. Also, you set up the logical server and distribute the settings to import and start the J2EE applications and resource adapters in the J2EE server. To set Application Server:

  1. Start the Administration Agent and Management Server in Node 1 and Node 2 respectively.

    For details on how to start the Administration Agent and Management Server, see 2.6 Settings for starting and stopping the system.

  2. Run the monbegin command of the HA monitor in Node 1 and Node 2 and start Application Server of the active node as the executing node and set Application Server of the spare node to standby.

    • Example of command execution in Node 1

      Run '# monbegin AP1' to start the active node 1 of Node 1.

      Run '# monbegin AP2' to set the spare node 2 of Node 1 to standby.

    • Example of command execution in Node 2

      Run '# monbegin AP1' to set the spare node 1 of Node 2 to standby.

      Run '# monbegin AP2' to start the active node 2 of Node 2.

    The operation status becomes normal wherein application server of active node (active node 1 of Node 1 and active node 2 of Node 2) is started and application server of spare node (spare node 1 of Node 2 and spare node 2 of Node 1) is in the standby state.

    [Figure]

  3. Use the Smart Composer functionality commands of the Management Server to set up, and start the Web system based on an already set up Easy Setup definition file for Application Server of the active node (active node 1 of Node 1 and active node 2 of Node 2). Also, use the server management commands to import the J2EE applications and resource adapters and to start the imported J2EE applications and resource adapters.

    For the settings of the J2EE applications, see 4.1.29 Setting and starting the business application (when using CUI) in the uCosminexus Application Server System Setup and Operation Guide and for the settings of the resource adapters, see the following subsections of the uCosminexus Application Server System Setup and Operation Guide:

    • 4.1.26 Setting DB Connector (when using CUI)

    • 4.1.27 Setting resource adapters other than DB Connector (when using CUI)

    • 4.1.28 Starting the resource adapter (when using CUI)

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

  4. Run the monswap command of the HA monitor in Node 2 to switch the nodes.

    • Example of command execution in Node 2

      Run '# monswap AP2' to switch the node by server identification name 'AP2'. The spare node 2 of Node 1 is started and the active node 2 of Node 2 is in the standby state.

      [Figure]

  5. Use the Smart Composer functionality commands of the Management Server to set up and start the Web system based on an already set up Easy Setup definition file for Application Server of the spare node 2 in Node 1. Also, use the server management commands to import the J2EE applications and resource adapters and to start the imported J2EE applications and resource adapters.

    Import the same J2EE applications and resource adapters as the active node 2 of Node 2 in the spare node 2 of Node 1.

  6. Run the monswap command of the HA monitor in Node 1 to switch the nodes and return to the normal operating state.

    • Example of command execution in Node 1

      Run '# monswap AP2' to switch the node by the server identification name 'AP2'. The active node 2 of Node 2 is started and the spare node 2 of Node 1 is in the standby state.

      [Figure]

  7. Run the monswap command of the HA monitor in Node 1 to switch the nodes.

    • Example of command execution in Node 1

      Run '# monswap AP1' to switch the node with the server identification name 'AP1'. The spare node 1 of Node 2 is started and the active node 1 of Node 1 is in the standby state.

      [Figure]

  8. Use the Smart Composer functionality commands of the Management Server to set up and start the Web system based on an already set up Easy Setup definition file for Application Server of the spare node 1 in Node 2. Also, use the server management commands to import the J2EE applications and resource adapters and to start the imported J2EE applications and resource adapters.

    Import the same J2EE applications and resource adapters as the active node 1 of Node 1 in the spare node 1 of Node 2.

  9. Run the monswap command of the HA monitor in Node 2 to switch the nodes and return to the normal operating state.

    • Example of command execution in Node 2

      Run '# monswap AP1' to switch the node by the server identification name 'AP1'. The active node 1 of Node 1 is started and the spare node 1 of Node 2 is in the standby state.

      [Figure]