Where do you need this groovy script?
The language component allows to execute a script and have the script loaded
And as always you can use Java code to load files. So you can use that to load the script.
I am looking for a general solution to load resources.
A lookup in a database clob is my preferred solution.
Let's say: a kind of global camel-property-loader for all components
At the moment every component has it's own approach
For groovy the solution with the language component should be fine.
For freemarker a header FreemarkerConstants.FREEMARKER_TEMPLATE should work.
For xslt I cannot find a similar approach......