Creates a new instance of FileStrategyBuilder
super.initializePersistenceStrategy(ctx, smBean);
Object[] params = { ctx.getPath() };
_logger.log(Level.INFO, "webcontainer.filePersistence", params);
PersistentManager mgr = new PersistentManager();
mgr.setMaxActiveSessions(maxSessions);
//FIXME: what is the replacement for setCheckInterval
//mgr.setCheckInterval(reapInterval);
mgr.setMaxIdleBackup(0); // FIXME: Make configurable
FileStore store = new FileStore();
//store.setCheckInterval(storeReapInterval);
store.setDirectory(directory);
mgr.setStore(store);
//for intra-vm session locking
StandardContext sctx = (StandardContext) ctx;
sctx.restrictedSetPipeline(new PESessionLockingStandardPipeline(sctx));
//special code for Java Server Faces
if(ctx.findParameter(JSF_HA_ENABLED) == null) {
ctx.addParameter(JSF_HA_ENABLED, "true");
}
//START OF 6364900
mgr.setSessionLocker(new PESessionLocker(ctx));
//END OF 6364900
ctx.setManager(mgr);
//this must be after ctx.setManager(mgr);
//StandardContext sctx = (StandardContext) ctx;
if(!sctx.isSessionTimeoutOveridden()) {
mgr.setMaxInactiveInterval(sessionMaxInactiveInterval);
}