Ejemplo n.º 1
0
  protected void startApplication() {
    try {
      SystemGlobals.loadQueries(SystemGlobals.getValue(ConfigKeys.SQL_QUERIES_GENERIC));
      SystemGlobals.loadQueries(SystemGlobals.getValue(ConfigKeys.SQL_QUERIES_DRIVER));

      String filename = SystemGlobals.getValue(ConfigKeys.QUARTZ_CONFIG);
      SystemGlobals.loadAdditionalDefaults(filename);

      ConfigLoader.createLoginAuthenticator();
      ConfigLoader.loadDaoImplementation();
      ConfigLoader.listenForChanges();
      //			ConfigLoader.startSearchIndexer();
      ConfigLoader.startSummaryJob();
    } catch (Exception e) {
      throw new ForumStartupException("Error while starting JForum", e);
    }
  }
Ejemplo n.º 2
0
 private void init(String baseDir) throws IOException {
   SystemGlobals.initGlobals(baseDir, baseDir + "/phpbb2jforum/resource/SystemGlobals.properties");
   SystemGlobals.loadQueries(
       baseDir + "/phpbb2jforum/resource/" + SystemGlobals.getValue(ConfigKeys.DATABASE_QUERIES));
 }