public abstract class EJBReceiver extends Attachable
| Modifier | Constructor and Description |
|---|---|
protected |
EJBReceiver()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
cancelInvocation(EJBReceiverInvocationContext receiverContext,
boolean cancelIfRunning)
Attempt to cancel an invocation.
|
protected abstract <T> StatefulEJBLocator<T> |
createSession(StatelessEJBLocator<T> statelessLocator)
Creates a session for a stateful session bean represented by the passed app name, module name, distinct name
and bean name combination.
|
protected abstract void |
processInvocation(EJBReceiverInvocationContext receiverContext)
Process the invocation.
|
getAttachment, getAttachments, putAttachment, putAttachmentIfAbsent, removeAttachment, removeAttachment, replaceAttachment, replaceAttachmentprotected abstract void processInvocation(EJBReceiverInvocationContext receiverContext) throws Exception
receiverContext - The EJB receiver invocation contextException - if the operation throws an exceptionprotected boolean cancelInvocation(EJBReceiverInvocationContext receiverContext, boolean cancelIfRunning)
false if
it cannot be discovered.receiverContext - the EJB receiver invocation contextcancelIfRunning - true to request that the cancellation proceed even if the method is runningtrue if the operation was definitely cancelled immediately, false otherwiseprotected abstract <T> StatefulEJBLocator<T> createSession(StatelessEJBLocator<T> statelessLocator) throws Exception
StatefulEJBLocator representing the newly created session.T - the view typestatelessLocator - the stateless locatorIllegalArgumentException - if the session creation request is made for a bean which is not a stateful
session beanExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.