|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.lib.ejb21.JContext org.ow2.jonas.lib.ejb21.JSessionContext org.ow2.jonas.lib.ejb21.JStatelessContext
public class JStatelessContext
This class extends JSessionContext in case of Stateless 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 | |
---|---|
JStatelessContext(JSessionFactory bf,
SessionBean sb)
constructor |
Method Summary | |
---|---|
Timer |
createTimer(Date arg0,
long arg1,
Serializable arg2)
|
Timer |
createTimer(Date arg0,
Serializable arg1)
|
Timer |
createTimer(long arg0,
long arg1,
Serializable arg2)
|
Timer |
createTimer(long arg0,
Serializable arg1)
|
Principal |
getCallerPrincipal()
Obtain the java.security.Principal that identifies the caller. |
MessageContext |
getMessageContext()
Obtain a reference to the JAX-RPC MessageContext. |
Collection |
getTimers()
|
TimerService |
getTimerService()
Get access to the EJB Timer Service. |
boolean |
isCallerInRole(String roleName)
Test if the caller has a given role. |
void |
setConnectionList(List conlist)
Set the connection list for this 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, getEJBHome, getEJBLocalHome, getEnvironment, getState, getUserTransaction, getWorkManager, 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, getEJBHome, getEJBLocalHome, getEnvironment, getUserTransaction, isCallerInRole, lookup, setRollbackOnly |
Constructor Detail |
---|
public JStatelessContext(JSessionFactory bf, SessionBean sb)
bf
- The Bean Factorysb
- The Session Bean instance.Method Detail |
---|
public TimerService getTimerService() throws IllegalStateException
getTimerService
in interface EJBContext
getTimerService
in class JContext
IllegalStateException
- Thrown if the instance is not allowed to
use this methodpublic void setRemoved() throws RemoteException, RemoveException
setRemoved
in class JSessionContext
RemoteException
RemoveException
public MessageContext getMessageContext() throws IllegalStateException
getMessageContext
in interface SessionContext
getMessageContext
in class JSessionContext
IllegalStateException
- - the instance is in a state that
does not allow access to this method.public void setConnectionList(List conlist)
setConnectionList
in class JSessionContext
public Principal getCallerPrincipal() throws IllegalStateException
getCallerPrincipal
in interface EJBContext
getCallerPrincipal
in class JContext
IllegalStateException
- no security context existspublic boolean isCallerInRole(String roleName) throws IllegalStateException
isCallerInRole
in interface EJBContext
isCallerInRole
in class JContext
roleName
- The name of the security role. The role must be one of
the security-role-ref that is defined in the deployment
descriptor.
IllegalStateException
- Security service not startedpublic Timer createTimer(long arg0, Serializable arg1) throws IllegalArgumentException, IllegalStateException, EJBException
createTimer
in interface TimerService
IllegalArgumentException
IllegalStateException
EJBException
TimerService.createTimer(long, java.io.Serializable)
public Timer createTimer(long arg0, long arg1, Serializable arg2) throws IllegalArgumentException, IllegalStateException, EJBException
createTimer
in interface TimerService
IllegalArgumentException
IllegalStateException
EJBException
TimerService.createTimer(long, long, java.io.Serializable)
public Timer createTimer(Date arg0, Serializable arg1) throws IllegalArgumentException, IllegalStateException, EJBException
createTimer
in interface TimerService
IllegalArgumentException
IllegalStateException
EJBException
TimerService.createTimer(java.util.Date, java.io.Serializable)
public Timer createTimer(Date arg0, long arg1, Serializable arg2) throws IllegalArgumentException, IllegalStateException, EJBException
createTimer
in interface TimerService
IllegalArgumentException
IllegalStateException
EJBException
TimerService.createTimer(java.util.Date, long, java.io.Serializable)
public Collection getTimers() throws IllegalStateException, EJBException
getTimers
in interface TimerService
IllegalStateException
EJBException
TimerService.getTimers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |