TCP/IP 관리 서버에 연결하기 위해 실행 단위(XU) 구성

Rule Execution Server 관리 EAR을 구성하여 TCP/IP 관리 모드를 활성화한 후 서버에 연결할 Java™ SE 또는 Java EE XU 인스턴스를 구성합니다.

이 태스크 정보

표준 TCP/IP 관리 서버에 연결하도록 Java SE 또는 Java EE 실행 단위의 인스턴스를 구성하려면 ra.xml 배치 디스크립터를 편집하여 Management 플러그인을 찾으십시오.

프로시저

  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 콘솔 관리 서버가 청취하고 있는 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의 위치입니다.