use of net.jforum.exceptions.RepositoryStartupException in project jforum2 by rafaelsteil.
the class ForumStartup method startForumRepository.
/**
* Starts the cache control for forums and categories.
* @throws RepositoryStartupException is something were wrong.
*/
public static void startForumRepository() {
try {
ForumDAO fm = DataAccessDriver.getInstance().newForumDAO();
CategoryDAO cm = DataAccessDriver.getInstance().newCategoryDAO();
ConfigDAO configModel = DataAccessDriver.getInstance().newConfigDAO();
ForumRepository.start(fm, cm, configModel);
} catch (Exception e) {
log.error("Unable to bootstrap JForum repository.", e);
throw new RepositoryStartupException("Error while trying to start ForumRepository: " + e, e);
}
}
Aggregations