在spring / blueprint DSL Route中使用camel getOriginalMessage()

时间:2016-09-19 21:16:42

标签: apache-camel dsl blueprint-osgi

<setBody>
    <simple>**exchange.getUnitOfWork().getOriginalInMessage()**</simple>
</setBody>

使用Spring / blueprint DSL,我如何在驼峰路线中使用原始信息设置setBody?

1 个答案:

答案 0 :(得分:0)

使用内联处理器:

.process(new Processor() {
    public void process(Exchange exchange) throws Exception {
        exchange.setIn(exchange.getUnitOfWork().getOriginalInMessage());                    
    }
});