377.5. Spring XML 版本

要使用 Spring XML 中的以上示例,您可以使用类似以下代码的内容:

  <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
    <route>
      <from uri="activemq:My.Queue"/>
      <to uri="xslt:org/apache/camel/spring/processor/example.xsl"/>
      <to uri="activemq:Another.Queue"/>
    </route>
  </camelContext>

要查看示例,请查看 测试案例 及其 Spring XML