|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.ejb21.JContext
org.ow2.jonas.lib.ejb21.JSessionContext
org.ow2.jonas.lib.ejb21.JStatefulContext
public class JStatefulContext
This class extends JSessionContext in case of Stateful Session Bean.
| Field Summary |
|---|
| Fields inherited from class org.ow2.jonas.lib.ejb21.JSessionContext |
|---|
bs, ismarkedremoved |
| Fields inherited from class org.ow2.jonas.lib.ejb21.JContext |
|---|
bf, CTX_STATE_ACTIVE, CTX_STATE_COMMITTING, CTX_STATE_FINDING, CTX_STATE_INITIAL, CTX_STATE_PASSIVE, myinstance, tm |
| Constructor Summary | |
|---|---|
JStatefulContext(JSessionFactory bf,
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. |
MessageContext |
getMessageContext()
Obtain a reference to the JAX-RPC MessageContext. |
TimerService |
getTimerService()
Get access to the EJB Timer Service. |
void |
setConnectionList(List conlist)
Set the connection list for this instance. |
void |
setInstance(SessionBean sb)
set instance. |
void |
setRemoved()
set this instance as removed |
| Methods inherited from class org.ow2.jonas.lib.ejb21.JSessionContext |
|---|
getBusinessObject, getEJBLocalObject, getEJBObject, getInstance, getInvokedBusinessInterface, getRollbackOnly, initSessionContext, isMarkedRemoved |
| Methods inherited from class org.ow2.jonas.lib.ejb21.JContext |
|---|
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getState, getUserTransaction, getWorkManager, isCallerInRole, isCallerInRole, lookup, setActive, setCommitting, setFinding, setPassive, 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, lookup, setRollbackOnly |
| Constructor Detail |
|---|
public JStatefulContext(JSessionFactory bf,
SessionBean sb,
boolean sync)
bf - - the Session Factorysb - - the Enterprise Bean instancesync - - True if implements SessionSymchronization.| Method Detail |
|---|
public void setInstance(SessionBean sb)
sb -
public TimerService getTimerService()
throws IllegalStateException
getTimerService in interface EJBContextgetTimerService in class JContextIllegalStateException - Thrown if the instance is not allowed to
use this method
public MessageContext getMessageContext()
throws IllegalStateException
getMessageContext in interface SessionContextgetMessageContext in class JSessionContextIllegalStateException - - the instance is in a state that
does not allow access to this method.public void beforeCompletion()
beforeCompletion in interface Synchronizationpublic void afterCompletion(int status)
afterCompletion in interface Synchronizationstatus - The status of the transaction completion.
public void setRemoved()
throws RemoteException,
RemoveException
setRemoved in class JSessionContextRemoteException
RemoveExceptionpublic void setConnectionList(List conlist)
setConnectionList in class JSessionContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||