179.3. 샘플
예를 들어 다음과 같은 것을 사용할 수 있습니다.
from("activemq:My.Queue"). to("jolt:com/acme/MyResponse.json");
파일 기반 리소스:
from("activemq:My.Queue"). to("jolt:file://myfolder/MyResponse.json?contentCache=true"). to("activemq:Another.Queue");
또한 헤더를 통해 구성 요소에서 동적으로 사용해야 하는 사양을 지정할 수도 있습니다. 예를 들면 다음과 같습니다.
from("direct:in"). setHeader("CamelJoltResourceUri").constant("path/to/my/spec.json"). to("jolt:dummy");