public static void main(String[] args) throws IOException, EngineException {
FileInputStream fis = new FileInputStream(newFile("/temp/file.properties"));
Properties props = new Properties();
try {
props.load(fis);
} finally {
fis.close();
}
Factory factory = Factory.makeInstance();
Configuration config = factory.makeConfiguration();
config.setDatabaseProperties(props);
}
There are no comments on this document