377.7. XQuery를 끝점으로 사용

sometimes you can be very large; it can be very large; it can be used for Templating. 따라서 XQuery 템플릿을 사용하여 라우팅할 수 있도록 authconfig 엔드포인트를 사용할 수 있습니다.

다음 예제에서는 ActiveMQ 대기열(MyQueue)의 메시지를 가져와서 XQuery를 사용하여 변환한 후 MQSeries로 전송하는 방법을 보여줍니다.

  <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
    <route>
      <from uri="activemq:MyQueue"/>
      <to uri="xquery:com/acme/someTransform.xquery"/>
      <to uri="mqseries:SomeOtherQueue"/>
    </route>
  </camelContext>

현재 XQuery의 사용자 지정 함수로 인해 NullPointerException (Camel 2.18, 2.19 및 2.20)이 발생할 수 있습니다. 이는 Camel 2.21에서 수정될 예정입니다.