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