| Modifier and Type | Method and Description |
|---|---|
| public <T> T | Returns: The business object corresponding to the given business interface or no-interface view.One of the local business interfaces
or remote business interfaces for this session bean.
In addition, the bean class type can be used to acquire
a reference to the bean's no-interface view. businessInterface)Obtain an object that can be used to invoke the current bean through a particular business interface view or its no-interface view. |
| public EJBLocalObject | Returns: The EJB local object currently associated with the instance.Obtain a reference to the EJB local object that is associated with the instance. |
| public EJBObject | Returns: The EJB object currently associated with the instance.Obtain a reference to the EJB object that is currently associated with the instance. |
| public Class | getInvokedBusinessInterface()
Obtain the business interface or no-interface view type through which the current business method invocation was made. |
| public MessageContext | Returns: The MessageContext for this web service invocation.Obtain a reference to the JAX-RPC MessageContext. |
| public boolean | Returns: true if the client has invokedFuture.cancel with a value of
true for the mayInterruptIfRunning parameter.Check whether a client invoked the |
| getBusinessObject | back to summary |
|---|---|
| public <T> T getBusinessObject(Class<T> businessInterface) throws IllegalStateException Obtain an object that can be used to invoke the current bean through a particular business interface view or its no-interface view.
| |
| getEJBLocalObject | back to summary |
|---|---|
| public EJBLocalObject getEJBLocalObject() throws IllegalStateException Obtain a reference to the EJB local object that is associated with the instance. An instance of a session bean can call this method at
anytime between the An instance can use this method, for example, when it wants to pass a reference to itself in a method argument or result.
| |
| getEJBObject | back to summary |
|---|---|
| public EJBObject getEJBObject() throws IllegalStateException 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 An instance can use this method, for example, when it wants to pass a reference to itself in a method argument or result.
| |
| getInvokedBusinessInterface | back to summary |
|---|---|
| public Class Obtain the business interface or no-interface view type through which the current business method invocation was made.
| |
| getMessageContext | back to summary |
|---|---|
| public MessageContext getMessageContext() throws IllegalStateException 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. Note Support for web services invocations using JAX-RPC is optional as of EJB 3.2
| |
| wasCancelCalled | back to summary |
|---|---|
| public boolean wasCancelCalled() throws IllegalStateException Check whether a client invoked the
| |