<setBody>
<simple>**exchange.getUnitOfWork().getOriginalInMessage()**</simple>
</setBody>
使用Spring / blueprint DSL,我如何在驼峰路线中使用原始信息设置setBody?
答案 0 :(得分:0)
使用内联处理器:
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
exchange.setIn(exchange.getUnitOfWork().getOriginalInMessage());
}
});