0
我有這樣的代碼對我的路由器類呼籲過濾器標籤Apache的駱駝一類新的
from("seda:singleInvoicesChannel")
.filter(new LowEnoughAmountPredicate())
.to("seda:filteredInvoicesChannel");
現在IAM試圖把它與這個
<route id="singleInvoicesChannel">
<from uri="seda:singleInvoicesChannel"/>
<filter>
</filter>
<to uri="seda:filteredInvoicesChannel"/>
</route>
轉移對我的駱駝的context.xml我問題是我將在過濾器標籤中放置什麼來實現.filter(新的LowEnoughAmountPredicate());.
可能重複[如何在Spring XML中使用駱駝消息過濾Bean](http://stackoverflow.com/questions/21762743/how-to-use-camel-message-filter-bean-in-spring-xml) – hveiga