private SFSBStoreManager createStoreManager(
SFSBContainerInitialization container, EjbDescriptor descriptor)
{
//Step 1. Create the StoreManager
FileStoreManager manager = new FileStoreManager();
//Step 2. Create a Map that contains store specific paramteters
Map map = new HashMap();
map.put(FileStoreManagerConstants.STORE_MANAGER_NAME,
descriptor.getName());
map.put(FileStoreManagerConstants.CONTAINER_ID,
new Long(descriptor.getUniqueId()));
CacheProperties cacheProps = new CacheProperties(descriptor);
map.put(FileStoreManagerConstants.SESSION_TIMEOUT_IN_SECONDS,
new Integer(cacheProps.getRemovalTimeoutInSeconds()));
map.put(FileStoreManagerConstants.GRACE_SESSION_TIMEOUT_IN_SECONDS,
new Integer(super.getRemovalGracePeriodInSeconds()));
map.put(FileStoreManagerConstants.PASSIVATION_DIRECTORY_NAME,
getPassivationDirectoryName(descriptor));
//Step 3. Initialize the store with the Map
_logger.log(Level.FINE, "Initialzing FileStoreManager with: " + map);
manager.initSessionStore(map);
_logger.log(Level.FINE, "INITIALZED FileStoreManager: " + manager);
return manager;
}