Hitachi

uCosminexus Application Server System Setup and Operation Guide


4.5.2 Setting the logical user server with Easy Setup definition file (When using CUI)

This section describes the example of Easy Setup definition file creation when you use the Smart Composer functionality to add the logical user server.

If you associate logical user server with a particular service unit, you can start or stop the user server concurrently with the start/stop of the service unit. You can connect multiple user servers to one service unit; however you cannot connect one user server to multiple service units.

Creation example of MyWebSystemDef.xml

<?xml version="1.0" encoding="UTF-8"?>
<model-definition xmlns="http://www.cosminexus.com/mngsvr/schema/ModelDefinition-2.5">
  <web-system>
    <name>MyWebSystem</name>
    <display-name>MyWebSystem</display-name>
    <description>This is a sample.</description>
    
    <!--Specify the configurations for the Tier.-->
    <tier>
      <tier-type>http-tier</tier-type>
    </tier>
    <tier>
      <tier-type>j2ee-tier</tier-type>
    </tier>
    
    <!--Specify the hosts for each Service Unit.-->
    <unit>
      <name>unit1</name>
      <allocated-host>
        <host-ref>apsv1</host-ref>
        <hosts-for>http-tier</hosts-for>
        <define-server>
          <logical-server-name>UserServer1</logical-server-name>
          <logical-server-type>user-server</logical-server-type>
            <configuration>
            <param>
            <!-- Server startup command -->
              <param-name>start.arg</param-name>
              <param-value>c:/test/start.exe</param-value>
            </param>
            </configuration>
        </define-server>
      </allocated-host>
      <allocated-host>
        <host-ref>apsv2</host-ref>
        <hosts-for>j2ee-tier</hosts-for>
        <define-server>
          <logical-server-name>UserServer2</logical-server-name>
          <logical-server-type>user-server</logical-server-type>
            <configuration>
            <param>
            <!-- Server startup command -->
              <param-name>start.arg</param-name>
              <param-value>c:/test/start.exe</param-value>
            </param>
            </configuration>
        </define-server>
      </allocated-host>
    </unit>
  </web-system>
  
  <!--Specify the settings for the host.-->
  <host>
    <host-name>apsv1</host-name>
    <agent-host>apsv1</agent-host>
  </host>
  <host>
    <host-name>apsv2</host-name>
    <agent-host>apsv2</agent-host>
  </host>
</model-definition>

Note; you cannot set logical user server parameters in the definition of the physical tier. You can set these logical user server parameters in the definition of the service units. In this definition example, the command to start up a server is specified to start the user server concurrently with the service unit.