TCP/IP 管理サーバーへの接続のための実行単位 (XU) の構成
TCP/IP 管理モードをアクティブにするように Rule Execution Server 管理 EAR を構成した後、サーバーに接続するように Java™ SE または Java EE XU インスタンスを構成します。
このタスクについて
手順
- テキスト・エディターで <InstallDir>/executionserver/bin/ra.xml ファイルを開きます。
- 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 パラメーターは、コンソールが配布されたサーバーのホスト名を参照する必要があります。
- <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 - 次の 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 の場所です。
親トピック: 管理コンソールのデフォルト動作の変更