DoPrivileged.execute(new DoPrivileged.Task() {
@Override
protected void doPrivileged() {
+ startupContainer.getComponentByType(IndexSynchronizer.class).executeDeprecated();
startupContainer.startComponents();
startupContainer.getComponentByType(IndexSynchronizer.class).execute();
startupContainer.getComponentByType(ServerLifecycleNotifier.class).notifyStart();
this.activityIndexer = activityIndexer;
}
- public void execute() {
+ public void executeDeprecated() {
DbSession session = db.openSession(false);
try {
synchronize(session, db.ruleDao(), index.get(RuleIndex.class));
} finally {
session.close();
}
+ }
+ public void execute() {
LOG.info("Index activities");
activityIndexer.setEnabled(true).index();