camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From misge <misge.in...@gmail.com>
Subject Velocity templating
Date Tue, 06 May 2008 09:46:04 GMT

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.


Mime
View raw message