TCP/IP 管理サーバーへの接続のための実行単位 (XU) の構成

TCP/IP 管理モードをアクティブにするように Rule Execution Server 管理 EAR を構成した後、サーバーに接続するように Java™ SE または Java EE XU インスタンスを構成します。

このタスクについて

Java SE または Java EE 実行単位のインスタンスを、始動された TCP/IP 管理サーバーに接続するように構成するには、Management プラグインを見つけるように ra.xml 配布記述子を編集します。

手順

  1. テキスト・エディターで <InstallDir>/executionserver/bin/ra.xml ファイルを開きます。
  2. Plugins セクションを変更します。
    config-property-value エレメント
    <config-property>
      <config-property-name>Plugins</config-property-name>
    	  <config-property-type>java.lang.String</config-property-type>
      <config-property-value>
          {pluginClass=Management,xuName=default,
          {pluginClass=DVS},{pluginClass=HTDS}
      </config-property-value>
    </config-property>
    を次のコードで置き換えます。
    <config-property-value>
       {pluginClass=Management,xuName=default,
        protocol=tcpip,tcpip.port=TCPIP_PORT,
        tcpip.host=RES_CONSOLE_HOST,
        tcpip.retryInterval=INTERVAL},
       {pluginClass=DVS},
       {pluginClass=HTDS}
    </config-property-value>
    各部の意味は、次のとおりです。
    • RES_CONSOLE_HOST は、Rule Execution Server コンソールが配布されているホストです。
    • TCPIP_PORT は、Rule Execution Server コンソール管理サーバーが listen している TCP/IP ポートです。
    • INTERVAL は、接続が失敗した場合にコンソールが管理サーバーへの再接続を試みるまでのコンソールの待機時間 (ミリ秒) です。

    使用しやすいように、XU 関連プラグインは対応する別名で識別されています。

    ランタイム構成の場合は、ビルド・ファイルにグローバル変数が含まれることがあります。
    <res-setup XUConfigInput="${project.build.directory}/ra.xml" XUConfigOutput="${ra.copy.directory}/ra.xml">
       <property name="plugins"
                 value="{pluginClass=DVS},{pluginClass=Management,xuName=default,protocol=tcpip,tcpip.port=PORTNUMBER,tcpip.host=HOSTNAME,tcpip.retryInterval=1000}" />
    </res-setup>
    注:

    Hostname パラメーターは、コンソールが配布されたサーバーのホスト名を参照する必要があります。

  3. <InstallDir>/executionserver/bin/ressetup.xml 内の xu.plugins を以下のように宣言します。
    <target name="setup">
      .
      .
      <property name="xu.plugins" value=""/>
      .
      <res-setup...
      .
      .
        <property name="plugins" value="${xu.plugins}"/>
      </res-setup>
    </target
  4. 次の Ant タスクを実行します。
    ant -Dxu.in= {IN_rar}
        -Dxu.out={OUT_rar}
        -Dxu.plugins="{pluginClass=DVS},{pluginClass=Management,xuName=default,protocol=tcpip,tcpip.port=PORT_NUMBER,tcpip.host=HOSTNAME,tcpip.retryInterval=1000}"
        -f ressetup.xml setup

    ここで、IN_rar は、<InstallDir>/executionserver/applicationservers 内の元の XU の場所であり、OUT_rar は、配布する新しい XU の場所です。