60.3. 例子
例如,您可以在 Predicate 中使用 JQ 和 Content Based Router EIP。
from("queue:books.new")
.choice()
.when().jq(".store.book.price < 10)")
.to("jms:queue:book.cheap")
.when().jq(".store.book.price < 30)")
.to("jms:queue:book.average")
.otherwise()
.to("jms:queue:book.expensive");