|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectweb.jonas_ejb.container.JContext
org.objectweb.jonas_ejb.container.JSessionContext
org.objectweb.jonas_ejb.container.JStatefulContext
This class extends JSessionContext in case of Stateful Session Bean.
| Field Summary |
| Fields inherited from class org.objectweb.jonas_ejb.container.JSessionContext |
bs, ismarkedremoved |
| Fields inherited from class org.objectweb.jonas_ejb.container.JContext |
bf, myinstance, tm |
| Constructor Summary | |
JStatefulContext(JSessionFactory bf,
javax.ejb.SessionBean sb,
boolean sync)
Constructs a JStatefulContext |
|
| Method Summary | |
void |
afterCompletion(int status)
The afterCompletion method is called by the transaction manager after the transaction is committed or rolled back. |
void |
beforeCompletion()
This beforeCompletion method is called by the transaction manager prior to the start of the transaction completion process. |
javax.xml.rpc.handler.MessageContext |
getMessageContext()
Obtain a reference to the JAX-RPC MessageContext. |
javax.ejb.TimerService |
getTimerService()
Get access to the EJB Timer Service. |
void |
setConnectionList(java.util.List conlist)
Set the connection list for this instance. |
void |
setInstance(javax.ejb.SessionBean sb)
set instance. |
void |
setRemoved()
set this instance as removed |
| Methods inherited from class org.objectweb.jonas_ejb.container.JSessionContext |
getEJBLocalObject, getEJBObject, getInstance, getRollbackOnly, initSessionContext, isMarkedRemoved |
| Methods inherited from class org.objectweb.jonas_ejb.container.JContext |
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getState, getUserTransaction, getWorkManager, isCallerInRole, isCallerInRole, setRollbackOnly, setState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.ejb.EJBContext |
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly |
| Constructor Detail |
public JStatefulContext(JSessionFactory bf,
javax.ejb.SessionBean sb,
boolean sync)
bf - - the Session Factorysb - - the Enterprise Bean instancesync - - True if implements SessionSymchronization.| Method Detail |
public void setInstance(javax.ejb.SessionBean sb)
sb -
public javax.ejb.TimerService getTimerService()
throws java.lang.IllegalStateException
getTimerService in interface javax.ejb.EJBContextgetTimerService in class JContextjava.lang.IllegalStateException - Thrown if the instance is not allowed to
use this method
public javax.xml.rpc.handler.MessageContext getMessageContext()
throws java.lang.IllegalStateException
getMessageContext in interface javax.ejb.SessionContextgetMessageContext in class JSessionContextjava.lang.IllegalStateException - - the instance is in a state that
does not allow access to this method.public void beforeCompletion()
beforeCompletion in interface javax.transaction.Synchronizationpublic void afterCompletion(int status)
afterCompletion in interface javax.transaction.Synchronizationstatus - The status of the transaction completion.
public void setRemoved()
throws java.rmi.RemoteException,
javax.ejb.RemoveException
setRemoved in class JSessionContextjava.rmi.RemoteException
javax.ejb.RemoveExceptionpublic void setConnectionList(java.util.List conlist)
setConnectionList in class JSessionContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||