camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wanggang1 <>
Subject Re: camel-veloccity property configuration
Date Mon, 01 Oct 2012 15:07:08 GMT
Thanks for all your timely replies.

I loaded template file from disk instead from classpath by using URI
But I have to use the full path to the template file.  I could not seem to
get the Velocity property "file.resource.loader.path=/myfolder/" in the
propertiesFile to work.

The most critical issue to me is that I could not dynamically change the
template in the runtime if the templates are stored in file system.  I could
do this dynamic swapping template file when I load templates from classpath
by setting "CamelVelocityResourceUri" in the Message Header.  If the
templates are stored in file system, whenever the "CamelVelocityResourceUri"
header kicks into effect(that's when Camel could not load
Camel try to load it from classpath, and "
Cannot find resource in classpath for URI: /myfolder/xyz.vm" is thrown.

Is some where my setting not correct?  Please advice.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message