|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas_ejb.container.JContext org.objectweb.jonas_ejb.container.JSessionContext org.objectweb.jonas_ejb.container.JStatefulContext
public class 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.EJBContext
getTimerService
in class JContext
java.lang.IllegalStateException
- Thrown if the instance is not allowed to
use this methodpublic javax.xml.rpc.handler.MessageContext getMessageContext() throws java.lang.IllegalStateException
getMessageContext
in interface javax.ejb.SessionContext
getMessageContext
in class JSessionContext
java.lang.IllegalStateException
- - the instance is in a state that
does not allow access to this method.public void beforeCompletion()
beforeCompletion
in interface javax.transaction.Synchronization
public void afterCompletion(int status)
afterCompletion
in interface javax.transaction.Synchronization
status
- The status of the transaction completion.public void setRemoved() throws java.rmi.RemoteException, javax.ejb.RemoveException
setRemoved
in class JSessionContext
java.rmi.RemoteException
javax.ejb.RemoveException
public 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 |