Red Hat Training
A Red Hat training course is available for Red Hat Fuse
231.4. 外部リソースからスクリプトを読み込み
Camel 2.11 から利用可能
スクリプトを外部化して、"classpath:"
、"file:"
、または "http:"
などのリソースから Camel に読み込むことができます。
これは、"resource:scheme:location"
の構文を使用して行われます。たとえば、クラスパス上のファイルを参照するには、以下を実行します。
.setHeader("myHeader").ognl("resource:classpath:myognl.txt")