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 SessionID |
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 StatefulEJBLocator<?> |
createSession$$bridge(EJBReceiverSessionCreationContext receiverContext)
Deprecated.
Compatibility bridge, remove at Final.
|
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, replaceAttachment
protected 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 SessionID 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 beanException
protected StatefulEJBLocator<?> createSession$$bridge(EJBReceiverSessionCreationContext receiverContext) throws Exception
Exception
protected 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 © 2019 JBoss by Red Hat. All rights reserved.