연결 구성 파일 완료
편집기를 사용하여 Insight Designer에서 작성된 연결 구성 파일의 항목을 완료합니다(또는 connectivityManager generate 명령을 사용하여).
이 태스크 정보
연결 구성 파일에는 솔루션의 각 엔드포인트에 대한 항목이 포함되어 있습니다. 구성 요소는 각 엔드포인트의 주석 아래에 그룹화되어 있습니다. 각각의 아웃바운드 서버는 다중 솔루션의 다중 엔드포인트에 대한 이벤트를 전달하도록 구성될 수 있습니다. 개별 엔드포인트는 아웃바운드 연결 티어에서 다중 서버의 클라이언트일 수 있습니다. 서버가 솔루션 엔드포인트에 대해 구성된 경우, 생성된 이벤트는 엔드포인트의 아웃바운드 이벤트 큐에 보관됩니다.
<ia_outboundHttpEndpoint endpoint="solution_name/endpoint_name"/>
<ia_outboundJmsEndpoint endpoint="solution_name/endpoint_name"/>
Decision Server Insights에서 WebSphere® Developer Tools를 설치한 경우에는 도구를 사용하여 항목을 자동 완료할 수 있습니다. 사용할 각 HTTP 또는 JMS 엔드포인트에 대해 다음 단계를 완료하십시오.
- 엔드포인트 구성 요소를 주석 해제합니다.
- 추가 구성 옵션(일부 요소에서 사용 가능함)을 지정하여 해당 항목의 필수 특성을 완료합니다.
- 사용할 기타 HTTP 또는 JMS 엔드포인트에 대한 프로시저를 반복합니다.
서버 구성 구성에 대한 정보는 Liberty 프로파일: server.xml 파일의 구성 요소를 참조하십시오.
프로시저
예
다음 예는 서버가 solution1 솔루션의 아웃바운드 HTTP 엔드포인트 endpoint1을 담당함을 지정합니다.
<ia_outboundHttpEndpoint endpoint="solution1/endpoint1"/>
다음 예에는 HTTP POST의 기본 인증 신임 정보가 포함되어 있습니다.
<ia_outboundHttpEndpoint endpoint="solution1/endpoint1" user="admin" password="{xor}FiwLNzYsDDo8Ki06GjEwKjg3awpg/>
다음 예는 아웃바운드 HTTP 엔드포인트 endpoint1에 대해 솔루션 연결 정의(.cdef) 파일에 지정된 URL을 오버라이드합니다.
<ia_outboundHttpEndpoint endpoint="solution1/endpoint1" url="http://localhost:9080/some/override/value"/>
다음 예는 아웃바운드 JMS 엔드포인트 endpoint2에 대한 고급 특성을 제공합니다.
<ia_outboundJmsEndpoint endpoint="solution1/endpoint2" jms.persistent.delivery="true" jms.bytes.message="false"/>
또한 솔루션 이름에 또는 엔드포인트 이름에 와일드카드를 사용할 수도 있습니다. 예:
<ia_outboundHttpEndpoint endpoint="solution1/*" />
- *는 모든 솔루션의 엔드포인트를 표시합니다.
- sol*는 일치하는 모든 솔루션의 모든 엔드포인트를 표시합니다.
- solution1/*는 솔루션의 모든 엔드포인트를 표시합니다.
- solution1/target*는 solution1의 target*와 일치하는 모든 엔드포인트를 표시합니다.
다음의 JMS 예는 WebSphere Application Server JMS 메시징 제공자를 사용하여 delayedDeparturesQueue 큐에서 메시지를 수신합니다. 또한 이 예에서는 flightMonitoring 솔루션의 delayedDepartures 엔드포인트에 메시지를 전송합니다. WebSphere Application Server 서비스 통합 버스는 airport.example.org 호스트에 배치되어 있으며, BootstrapBasicMessaging 체인을 사용하여 포트 7276에서 청취 중입니다.
<jmsQueue jndiName="jms/delayedDepartures" id="delayedDepartures">
<properties.wasJms queueName="delayedDeparturesQueue"/>
</jmsQueue>
<jmsActivationSpec id="flightMonitoring-inbound/delayedDeparturesEndpoint/delayedDeparturesEndpoint">
<properties.wasJms destinationType="javax.jms.Queue" destinationRef="delayedDepartures" remoteServerAddress="hostname.example.org:7276:BootstrapBasicMessaging"/>
</jmsActivationSpec>
다음의 JMS 예는 WebSphere MQ JMS 메시징 제공자를 사용하여 weatherUpdatesTopic 주제에서 JMS 메시지를 수신합니다. 또한 이 예는 메시지를 flightMonitoring 솔루션의 weatherUpdates 엔드포인트에 전달합니다. WebSphere MQ 큐 관리자는 weather.example.org 호스트에 배치되어 있으며 포트 1415에서 청취 중입니다.
<jmsTopic jndiName="jms/weatherUpdates" id="weatherUpdates">
<properties.wmqJms baseTopicName="weatherUpdatesTopic"/>
</jmsTopic>
<jmsActivationSpec id="flightMonitoring-inbound/weatherUpdatesEndpoint/weatherUpdatesEndpoint">
<properties.wmqJms destinationType="javax.jms.Topic" destinationRef="weatherUpdates" hostName="weather.example.org" port="1415"/>
</jmsActivationSpec>
다음의 JMS 예는 메시지를 runwayStatusTopic 주제에 전송합니다. 예에서는 WebSphere MQ JMS 메시징 제공자와 함께 flightMonitoring 솔루션의 runwayStatus 엔드포인트를 사용합니다. WebSphere MQ 큐 관리자는 airport.example.org 호스트에 구성되어 있으며, 포트 1415에서 청취 중입니다.
<jmsTopic jndiName="jms/runwayStatus" id="runwayStatus">
<properties.wmqJms baseTopicName="runwayStatusTopic"/>
</jmsTopic>
<jmsConnectionFactory jndiName="jms/airportQM">
<properties.wmqJms hostName="airport.example.org" port="1415"/>
</jmsConnectionFactory>
다음에 수행할 작업
connectivityManager deploy 명령을 실행하여 연결 구성을 배치하십시오.