78.12. 使用 Blueprint 配置目的地及过期

Camel 2.11.x 中,Camel 传输支持使用 Blueprint 配置。

如果使用蓝图,您应该使用命名空间 http://cxf.apache.org/transports/camel/blueprint 并导入 schema,如 blow。

为蓝图添加配置命名空间

<beans ...
       xmlns:camel="http://cxf.apache.org/transports/camel/blueprint"
       ...
       xsi:schemaLocation="...
                           http://cxf.apache.org/transports/camel/blueprint
                           http://cxf.apache.org/schmemas/blueprint/camel.xsd
                          ...>

在蓝图 camel:conduit camel:destination 只有一个 camelContextId 属性,它们不支持在 camel 目的地中指定 camel 上下文。

  <camel:conduit id="*.camel-conduit" camelContextId="camel1" />
  <camel:destination id="*.camel-destination" camelContextId="camel1" />