This content has been marked as final.
Show 2 replies
-
1. Re: How to load properties from external source ?
davsclaus Oct 2, 2012 2:19 AM (in response to labo32_delaboe)Where do you need this groovy script?
The language component allows to execute a script and have the script loaded
http://camel.apache.org/language
And as always you can use Java code to load files. So you can use that to load the script.
-
2. Re: How to load properties from external source ?
labo32_delaboe Oct 2, 2012 3:32 AM (in response to davsclaus)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......