126.8. 외부 리소스에서 스크립트 로드

Camel 2.11에서 사용 가능

스크립트를 외부화하고 Camel이 "classpath:", "file:" 또는 "http: " 와 같은 리소스에서 로드할 수 있습니다.
이는 "resource:scheme:location" 구문을 사용하여 수행되며, 다음과 같이 수행할 수 있는 classpath의 파일을 참조합니다.

.setHeader("myHeader").groovy("resource:classpath:mygroovy.groovy")