188.9. JSONPath 주입
빈에서 메서드를 호출하고 JSonPath와 같은 다양한 언어를 사용하여 메시지에서 값을 추출한 후 메서드 매개 변수에 바인딩할 수 있습니다.
예를 들면 다음과 같습니다
public class Foo {
@Consume(uri = "activemq:queue:books.new")
public void doSomething(@JsonPath("$.store.book[*].author") String author, @Body String json) {
// process the inbound message here
}
}