【发布时间】:2017-01-10 13:28:55
【问题描述】:
我需要动态创建camel-bindy 端点来编组输入。下面是示例代码:
<dataFormats>
<bindy id="bookModel" type="Csv" classType="org.camelcookbook.transformation.csv.model.BookModel"/>
</dataFormats>
<route>
<from uri="direct:unmarshal"/>
<!-- <unmarshal ref="bookModel"/> -->
<to uri="dataformat:bindy:unmarshal?ref=bookModel"/>
</route>
我需要将交换传递到等效端点,而不是解组标签,但出现错误“找不到名称为 bindy 的数据格式”
【问题讨论】:
-
我将使用“recipientList”将消息动态路由到适当的绑定编组器。
-
您是否将 camel-bindy 作为依赖项添加到您的类路径中。
-
是的,克劳斯。已添加
-
下面的工作正常:
-
所以,你是说 unmarshal 有效,但 marshal 无效?
标签: java apache-camel bindy