Package com.sun.ejb.base.sfsb.store

Examples of com.sun.ejb.base.sfsb.store.FileStoreManager


    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;
    }
View Full Code Here

TOP

Related Classes of com.sun.ejb.base.sfsb.store.FileStoreManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.