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