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,
org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration,
SSLContext sslContext)
Creates a session for a stateful session bean represented by the passed app name, module name, distinct name
and bean name combination.
|
protected SocketAddress |
getSourceAddress(URI uri)
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 <T> StatefulEJBLocator<T> createSession(StatelessEJBLocator<T> statelessLocator, org.wildfly.security.auth.client.AuthenticationConfiguration authenticationConfiguration, SSLContext sslContext) throws Exception
StatefulEJBLocator representing the newly created session.T - the view typestatelessLocator - the stateless locatorauthenticationConfiguration - the authentication configuration to use (not null)sslContext - the SSL context to use (may be null if none is configured)IllegalArgumentException - if the session creation request is made for a bean which is not a stateful
session beanExceptionprotected SocketAddress getSourceAddress(URI uri)
uri - 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.