|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The interface for persisting stateful session beans.
| Field Summary |
| Method Summary | |
void |
activateSession(StatefulSessionEnterpriseContext ctx)
Activate the SFSB for the given context. |
void |
createdSession(StatefulSessionEnterpriseContext ctx)
Called after the SFSB's ejbCreate method has been successfully invoked to allow the PM to perform an post creation setup. |
Object |
createId(StatefulSessionEnterpriseContext ctx)
Create a unique identifier for the given SFSB context. |
void |
passivateSession(StatefulSessionEnterpriseContext ctx)
Passivate the SFSB for the given context. |
void |
removePassivated(Object id)
Remove any passivated state for the given SFSB identifier. |
void |
removeSession(StatefulSessionEnterpriseContext ctx)
Remove the SFSB for the given context. |
| Methods inherited from interface org.jboss.ejb.ContainerPlugin |
setContainer |
| Methods inherited from interface org.jboss.system.Service |
create, destroy, start, stop |
| Method Detail |
public Object createId(StatefulSessionEnterpriseContext ctx) throws Exception
ctx - The context of the SFSB to create an unique identifier for.
Exception - Failed to create unique identifier.public void createdSession(StatefulSessionEnterpriseContext ctx) throws Exception
ctx - The context of the SFSB which was created.
Exceptionpublic void activateSession(StatefulSessionEnterpriseContext ctx) throws RemoteException
Implementation is responsible for invoking the bean's
SessionBean.ejbActivate() method.
ctx - The context of the SFSB to activate.
RemoteExceptionpublic void passivateSession(StatefulSessionEnterpriseContext ctx) throws RemoteException
Implementation is responsible for invoking the bean's
SessionBean.ejbPassivate() method.
ctx - The context of the SFSB to passivate.
RemoteExceptionpublic void removeSession(StatefulSessionEnterpriseContext ctx) throws RemoteException, javax.ejb.RemoveException
Implementation is responsible for invoking the bean's
SessionBean.ejbRemove() method.
ctx - The context of the SFSB to remove.
RemoteException
javax.ejb.RemoveExceptionpublic void removePassivated(Object id)
This is called by the instance cache impl to clean up the state for an old session.
id - The identifier of the SFSB to remove passivate state for.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||