public class StatefulContext extends BaseSessionContext
BaseContext.Call, BaseContext.State, BaseContext.UserTransactionWrapper
securityService, userTransaction
Constructor and Description |
---|
StatefulContext(SecurityService securityService,
UserTransaction userTransaction) |
Modifier and Type | Method and Description |
---|---|
void |
check(ThreadContext context,
BaseContext.Call call) |
MessageContext |
getMessageContext()
Obtain a reference to the JAX-RPC MessageContext.
|
getBusinessObject, getEJBLocalObject, getEJBObject, getInvokedBusinessInterface, wasCancelCalled
doCheck, getCallerIdentity, getCallerPrincipal, getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, getUserTransaction, illegal, isCallerInRole, isCallerInRole, isCallerInRole, isTimerMethodAllowed, isUserTransactionAccessAllowed, lookup, setRollbackOnly, writeReplace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCallerIdentity, getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getEnvironment, getRollbackOnly, getTimerService, getUserTransaction, isCallerInRole, isCallerInRole, lookup, setRollbackOnly
public StatefulContext(SecurityService securityService, UserTransaction userTransaction)
public void check(ThreadContext context, BaseContext.Call call)
check
in class BaseContext
public MessageContext getMessageContext() throws java.lang.IllegalStateException
SessionContext
An instance of a stateless session bean can call this method from any business method invoked through its web service endpoint interface.
Note: Support for web services invocations using JAX-RPC is optional as of EJB 3.2
getMessageContext
in interface SessionContext
getMessageContext
in class BaseSessionContext
java.lang.IllegalStateException
- Thrown if this method is invoked
while the instance is in a state that does not allow access
to this method.