|
||||||||||
| 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.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 EJBContextgetTimerService in class JContextIllegalStateException - Thrown if the instance is not allowed to
use this method
public void setRemoved()
throws RemoteException,
RemoveException
setRemoved in class JSessionContextRemoteException
RemoveException
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 setConnectionList(List conlist)
setConnectionList in class JSessionContext
public Principal getCallerPrincipal()
throws IllegalStateException
getCallerPrincipal in interface EJBContextgetCallerPrincipal in class JContextIllegalStateException - no security context exists
public boolean isCallerInRole(String roleName)
throws IllegalStateException
isCallerInRole in interface EJBContextisCallerInRole in class JContextroleName - 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 started
public Timer createTimer(long arg0,
Serializable arg1)
throws IllegalArgumentException,
IllegalStateException,
EJBException
createTimer in interface TimerServiceIllegalArgumentException
IllegalStateException
EJBExceptionTimerService.createTimer(long, java.io.Serializable)
public Timer createTimer(long arg0,
long arg1,
Serializable arg2)
throws IllegalArgumentException,
IllegalStateException,
EJBException
createTimer in interface TimerServiceIllegalArgumentException
IllegalStateException
EJBExceptionTimerService.createTimer(long, long, java.io.Serializable)
public Timer createTimer(Date arg0,
Serializable arg1)
throws IllegalArgumentException,
IllegalStateException,
EJBException
createTimer in interface TimerServiceIllegalArgumentException
IllegalStateException
EJBExceptionTimerService.createTimer(java.util.Date, java.io.Serializable)
public Timer createTimer(Date arg0,
long arg1,
Serializable arg2)
throws IllegalArgumentException,
IllegalStateException,
EJBException
createTimer in interface TimerServiceIllegalArgumentException
IllegalStateException
EJBExceptionTimerService.createTimer(java.util.Date, long, java.io.Serializable)
public Collection getTimers()
throws IllegalStateException,
EJBException
getTimers in interface TimerServiceIllegalStateException
EJBExceptionTimerService.getTimers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||