In order to impove performance you can set this in the velocity source
component:
and instead of this:
 public VelocityEngine getVelocityEngine() throws Exception {
        if (velocityEngine == null) {
            velocityEngine = component.getVelocityEngine();
            velocityEngine.init();
        }
        return velocityEngine;
    }

to this:
 public VelocityEngine getVelocityEngine() throws Exception {
        if (velocityEngine == null) {
            velocityEngine = component.getVelocityEngine();
            velocityEngine.init();
            Velocity.setProperty(Velocity.FILE_RESOURCE_LOADER_CACHE,
Boolean.TRUE);
        }
        return velocityEngine;
    }


-- 
View this message in context: 
http://www.nabble.com/Velocity-templating-tp17079359s22882p17079359.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to