Red Hat Training

A Red Hat training course is available for Red Hat Fuse

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