71.7. JSonPath injection
Bean インテグレーションを使用して Bean でメソッドを呼び出すことができ、(JSONPath アノテーションを介して) JSONPath などのさまざまな言語を使用してメッセージから値を抽出し、以下のようにメソッドパラメーターにバインドできます。
public class Foo {
@Consume("activemq:queue:books.new")
public void doSomething(@JsonPath("$.store.book[*].author") String author, @Body String json) {
// process the inbound message here
}
}