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");