78.11.3. 구성 요소

camel:conduit 요소와 하위 항목을 사용하여 Camel 전송 클라이언트를 구성합니다. camel:conduit 요소는 끝점에 해당하는 WSDL 포트 요소를 지정하는 단일 특성인 name 을 사용합니다. name 속성의 값은 portQName'.camel-conduit' 형식을 사용합니다. 예를 들어 아래 코드는 endpoint의 대상 네임스페이스가 http://widgets.widgetvendor.net 인 경우 WSDL 조각 < port binding="widgetSOAPBinding" name="widgetSOAPPort" >에 의해 지정된 엔드포인트에 대한 구성을 추가하는 데 사용되는 camel:conduit 요소를 보여줍니다.

http-conf:conduit Element

...
  <camelContext id="conduit_context" xmlns="http://activemq.apache.org/camel/schema/spring">
       <route>
           <from uri="direct:EndpointA" />
           <to uri="direct:EndpointB" />
       </route>
   </camelContext>

  <camel:conduit name="{http://widgets/widgetvendor.net}widgetSOAPPort.camel-conduit">
     <camel:camelContextRef>conduit_context</camel:camelContextRef>
  </camel:conduit>

  <!-- new added feature since Camel 2.11.x
  <camel:conduit name="{http://widgets/widgetvendor.net}widgetSOAPPort.camel-conduit" camelContextId="conduit_context" />


  <camel:conduit name="*.camel-conduit">
  <!-- you can also using the wild card to specify the camel-conduit that you want to configure -->
    ...
  </camel:conduit>
...

camel:conduit 요소에는 구성 정보를 지정하는 여러 자식 요소가 있습니다. 아래에 설명되어 있습니다.

요소

설명

camel-spring:camelContext

camel conduit에서 camel context를 지정할 수 있습니다.

camel:camelContextRef

<The camel context id that you want inject into the camel conduit>