The DATABASE_PROPERTIES_FILE and Flux 7+

VERSION 1 Published

Created on: 14-Dec-2006 07:50 by Lillian Bozonie - Last Modified:  14-Dec-2006 07:50 by Lillian Bozonie

The DATABASE_PROPERTIES_FILE configuration option is not in Flux 7+.

You can either place your properties directly into your Flux engine configuration, or create your engine programatically and import your database properties.

For instance:

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);
}
Average User Rating
(0 ratings)




There are no comments on this document