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 StatefulEJBLocator<?> |
createSession(EJBReceiverSessionCreationContext receiverContext)
Creates a session for a stateful session bean represented by the passed app name, module name, distinct name
and bean name combination.
|
protected InetSocketAddress |
getSourceAddress(InetSocketAddress destination)
Query the expected or actual source IP address configured for the given target URI.
|
protected boolean |
isConnected(URI uri)
Determine if the given target URI is "connected".
|
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 StatefulEJBLocator<?> createSession(EJBReceiverSessionCreationContext receiverContext) throws Exception
StatefulEJBLocator representing the newly created session. The
returned locator should have the same view type as the requested locator.receiverContext - the EJB receiver session creation contextIllegalArgumentException - if the session creation request is made for a bean which is not a stateful
session beanExceptionprotected InetSocketAddress getSourceAddress(InetSocketAddress destination)
destination - the supported URI of the peer (not null)null if none is knownprotected boolean isConnected(URI uri)
true.uri - the supported URI of the peer (not null)true if the peer is readily available, false otherwiseCopyright © 2017 JBoss by Red Hat. All rights reserved.