|
|||||||||
| 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
public abstract class JSessionContext
This class implements javax.ejb.SessionContext interface. it should be implemented by JStatefulContext and JStatelessContext depending if the beans is stateful or stateless.
| Field Summary | |
|---|---|
protected JSessionSwitch |
bs
|
protected boolean |
ismarkedremoved
|
| Fields inherited from class org.objectweb.jonas_ejb.container.JContext |
|---|
bf, myinstance, tm |
| Constructor Summary | |
|---|---|
JSessionContext(JSessionFactory bf,
javax.ejb.SessionBean eb)
Constructs a SessionContext |
|
| Method Summary | |
|---|---|
javax.ejb.EJBLocalObject |
getEJBLocalObject()
Obtain a reference to the EJB local object that is currently associated with the instance. |
javax.ejb.EJBObject |
getEJBObject()
Obtains a reference to the EJB object that is currently associated with the instance. |
javax.ejb.SessionBean |
getInstance()
Returns the bean instance of this context Used in the generated classes to retrieve the instance |
abstract javax.xml.rpc.handler.MessageContext |
getMessageContext()
Obtain a reference to the JAX-RPC MessageContext. |
boolean |
getRollbackOnly()
Tests if the transaction has been marked for rollback only. |
void |
initSessionContext(JSessionSwitch bs)
Reinit Context for reuse |
boolean |
isMarkedRemoved()
|
abstract void |
setConnectionList(java.util.List conlist)
|
abstract void |
setRemoved()
|
| Methods inherited from class org.objectweb.jonas_ejb.container.JContext |
|---|
getCallerIdentity, getCallerPrincipal, getEJBHome, getEJBLocalHome, getEnvironment, getState, getTimerService, 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, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, setRollbackOnly |
| Field Detail |
|---|
protected JSessionSwitch bs
protected boolean ismarkedremoved
| Constructor Detail |
|---|
public JSessionContext(JSessionFactory bf,
javax.ejb.SessionBean eb)
bf - The Session Factoryeb - The Session bean instance| Method Detail |
|---|
public javax.ejb.EJBObject getEJBObject()
throws java.lang.IllegalStateException
getEJBObject in interface javax.ejb.SessionContextIllegalStateException: - Thrown if the instance invokes this
method while the instance is in a state that does not allow
the instance to invoke this method.
java.lang.IllegalStateException
public javax.ejb.EJBLocalObject getEJBLocalObject()
throws java.lang.IllegalStateException
getEJBLocalObject in interface javax.ejb.SessionContextjava.lang.IllegalStateException - - if the instance invokes this
method while the instance is in a state that does not allow the
instance to invoke this method, or if the instance does not have
a local interface.
public abstract javax.xml.rpc.handler.MessageContext getMessageContext()
throws java.lang.IllegalStateException
getMessageContext in interface javax.ejb.SessionContextjava.lang.IllegalStateException - - the instance is in a state that
does not allow access to this method.
public boolean getRollbackOnly()
throws java.lang.IllegalStateException
getRollbackOnly in interface javax.ejb.EJBContextgetRollbackOnly in class JContextjava.lang.IllegalStateException - if state is 0public void initSessionContext(JSessionSwitch bs)
bs - The SessionSwitch to reuse.
public javax.ejb.SessionBean getInstance()
throws java.rmi.RemoteException
java.rmi.RemoteException - if no instancepublic boolean isMarkedRemoved()
public abstract void setRemoved()
throws java.rmi.RemoteException,
javax.ejb.RemoveException
java.rmi.RemoteException
javax.ejb.RemoveExceptionpublic abstract void setConnectionList(java.util.List conlist)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||