}
catch (Throwable t)
{
String str = "Problem starting DistributedCacheManager for HttpSession clustering";
log_.error(str, t);
throw new LifecycleException(str, t);
}
batchingManager = proxy_.getBatchingManager();
if(batchingManager == null)
{
throw new LifecycleException("start(): Obtained null batchingManager");
}
try
{
this.outdatedSessionChecker = initOutdatedSessionChecker();
initializeUnloadedSessions();
// Setup our SnapshotManager
initSnapshotManager();
// Add SnapshotValve and, if needed, JvmRouteValve and batch repl valve
installValves();
backgroundProcessAllowed.set(true);
started_ = true;
// Notify our interested LifecycleListeners
lifecycle_.fireLifecycleEvent(AFTER_START_EVENT, this);
// Let subclasses do what they want
startExtensions();
log_.debug("start(): DistributedCacheManager started");
}
catch (Exception e)
{
log_.error("Unable to start manager.", e);
throw new LifecycleException(e);
}
registerManagerMBean();
}