| javax.ejb.SessionContext
All known Subclasses: com.bm.utils.substitues.FakedSessionContext,
Method Summary | |
T | getBusinessObject(Class<T> businessInterface) Obtain an object that can be used to invoke the current bean through the
given business interface.
< Parameters: T - > the interface of the bean Parameters: businessInterface - One of the local business interfaces or remotebusiness interfaces for this session bean. | EJBLocalObject | getEJBLocalObject() Obtain a reference to the EJB local object that is associated with the
instance. | EJBObject | getEJBObject() Obtain a reference to the EJB object that is currently associated with
the instance. | Class | getInvokedBusinessInterface() Obtain the business interface through which the current business method
invocation was made. | MessageContext | getMessageContext() Obtain a reference to the JAX-RPC MessageContext. |
getBusinessObject | T getBusinessObject(Class<T> businessInterface) throws IllegalStateException(Code) | | Obtain an object that can be used to invoke the current bean through the
given business interface.
< Parameters: T - > the interface of the bean Parameters: businessInterface - One of the local business interfaces or remotebusiness interfaces for this session bean. The business object corresponding to the given businessinterface. throws: IllegalStateException - - Thrown if this method is invoked with aninvalid business interface for the current bean. since: EJB 3.0 version. |
getEJBLocalObject | EJBLocalObject getEJBLocalObject() throws IllegalStateException(Code) | | Obtain a reference to the EJB local object that is associated with the
instance. An instance of a session enterprise Bean can call this method
at anytime between the ejbCreate() and ejbRemove() methods, including
from within the ejbCreate() and ejbRemove() methods. An instance can use
this method, for example, when it wants to pass a reference to itself in
a method argument or result.
The EJB local object currently associated with the instance. throws: IllegalStateException - - Thrown if the instance invokes thismethod while the instance is in a state that does not allow theinstance to invoke this method, or if the instance does not havea local interface. |
getEJBObject | EJBObject getEJBObject() throws IllegalStateException(Code) | | Obtain a reference to the EJB object that is currently associated with
the instance. An instance of a session enterprise Bean can call this
method at anytime between the ejbCreate() and ejbRemove() methods,
including from within the ejbCreate() and ejbRemove() methods. An
instance can use this method, for example, when it wants to pass a
reference to itself in a method argument or result.
The EJB object currently associated with the instance. throws: IllegalStateException - - Thrown if the instance invokes thismethod while the instance is in a state that does not allow theinstance to invoke this method, or if the instance does not havea remote interface. |
getInvokedBusinessInterface | Class getInvokedBusinessInterface() throws IllegalStateException(Code) | | Obtain the business interface through which the current business method
invocation was made.
the business interface through which the current business methodinvocation was made. throws: IllegalStateException - - Thrown if this method is called and thebean has not been invoked through a business interface. since: EJB 3.0 version. |
getMessageContext | MessageContext getMessageContext() throws IllegalStateException(Code) | | Obtain a reference to the JAX-RPC MessageContext. An instance of a
stateless session bean can call this method from any business method
invoked through its web service endpoint interface.
The MessageContext for this web service invocation. throws: IllegalStateException - - Thrown if this method is invoked whilethe instance is in a state that does not allow access to thismethod. |
|
|