Senhores
Tenho o metodo baixo para carregar os templates do Velocity , para cada sistema tenho um templete , aconteceque que depois que ele carrega a propriedade file.resource.loader.path não consigo mais alterar só matando o Jboss . Já tentei até usar a o metodo Velocity.clearProperty(key) , ainda sim ele fica com o diretorio anterior em memoria. alguma dica ??
private void init(SystemDefinition systemDefinition) {
log.info("Init Velocity File Resource Loader");
try {
Properties properties = new Properties();
properties.put("file.resource.loader.path", systemDefinition.getDeployDirectory());
properties.put("resource.loader", "file");
properties.put("file.resource.loader.class", "org.apache.velocity.runtime.resource.loader.FileResourceLoader");
Velocity.init(properties);
} catch (Exception e) {
e.printStackTrace();
}
}