64.8. 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
}
}