Basically, I'm trying to do this (incorrect code!):
<camel:setBody>
<camel:simple>resource:classpath:/myfiles/file.xml</camel:simple>
</camel:setBody>
How would you do this properly?
Cheers!
You can possible try with
<to uri="language:constant:resource:classpath:/myfiles/file.xml"/>
To use the language component: http://camel.apache.org/language.html To load the content.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With