org.jboss.ejb3.cache.simple
Interface StatefulSessionPersistenceManager

All Known Implementing Classes:
StatefulSessionFilePersistenceManager

public interface StatefulSessionPersistenceManager

Comment


Field Summary
static java.lang.String DEFAULT_STORE_DIRECTORY_NAME
          The default store directory name ("sessions").
static org.jboss.logging.Logger log
           
 
Method Summary
 StatefulBeanContext activateSession(java.lang.Object id)
          Restores session state from the serialized file & invokes SessionBean.ejbActivate() on the target bean.
 void destroy()
           
 java.util.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(java.lang.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 java.lang.String DEFAULT_STORE_DIRECTORY_NAME
The default store directory name ("sessions").

See Also:
Constant Field Values
Method Detail

activateSession

StatefulBeanContext activateSession(java.lang.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

java.util.List<StatefulBeanContext> getPassivatedBeans()

removePassivated

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


destroy

void destroy()
             throws java.lang.Exception
Throws:
java.lang.Exception

initialize

void initialize(Container container)
                throws java.lang.Exception
Throws:
java.lang.Exception