org.jboss.ejb3.cache.simple
Interface StatefulSessionPersistenceManager

All Known Implementing Classes:
StatefulSessionFilePersistenceManager

public interface StatefulSessionPersistenceManager

Comment

Version:
$Revision: 61333 $
Author:
Bill Burke

Field Summary
static String DEFAULT_STORE_DIRECTORY_NAME
          The default store directory name ("sessions").
static org.jboss.logging.Logger log
           
 
Method Summary
 StatefulBeanContext activateSession(Object id)
          Restores session state from the serialized file & invokes SessionBean.ejbActivate() on the target bean.
 void destroy()
           
 List<StatefulBeanContext> getPassivatedBeans()
           
 void initialize(Container container)
           
 void passivateSession(StatefulBeanContext ctx)
          Invokes SessionBean.ejbPassivate() on the target bean and saves the state of the session to a file.
 void removePassivated(Object id)
          Removes the saved state file (if any) for the given session id.
 

Field Detail

log

static final org.jboss.logging.Logger log

DEFAULT_STORE_DIRECTORY_NAME

static final String DEFAULT_STORE_DIRECTORY_NAME
The default store directory name ("sessions").

See Also:
Constant Field Values
Method Detail

activateSession

StatefulBeanContext activateSession(Object id)
Restores session state from the serialized file & invokes SessionBean.ejbActivate() on the target bean.


passivateSession

void passivateSession(StatefulBeanContext ctx)
Invokes SessionBean.ejbPassivate() on the target bean and saves the state of the session to a file.


getPassivatedBeans

List<StatefulBeanContext> getPassivatedBeans()

removePassivated

void removePassivated(Object id)
Removes the saved state file (if any) for the given session id.


destroy

void destroy()
             throws Exception
Throws:
Exception

initialize

void initialize(Container container)
                throws Exception
Throws:
Exception


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.