public class EjbServiceInvoker extends ServiceInvoker<EjbServiceFactory>
| Modifier and Type | Field and Description |
|---|---|
static String |
CAPITALIZED_DESTINATION_ID |
static String |
DESTINATION_ID |
destination, factory, invocationListeners, invokee| Constructor and Description |
|---|
EjbServiceInvoker(Destination destination,
EjbServiceFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
afterInvocation(ServiceInvocationContext context,
Object result)
Called after a successful invocation of the service's method.
|
protected void |
afterInvocationError(ServiceInvocationContext context,
Throwable error)
Called after a failed invocation of the service's method, possibly after a new attempt (see
ServiceInvoker.retryInvocation(ServiceInvocationContext, Throwable). |
EjbServiceMetadata |
getMetadata() |
adjustInvokee, beforeInvocation, beforeMethodSearch, invoke, retryInvocationpublic static final String CAPITALIZED_DESTINATION_ID
public static final String DESTINATION_ID
public EjbServiceInvoker(Destination destination, EjbServiceFactory factory) throws ServiceException
ServiceExceptionpublic EjbServiceMetadata getMetadata()
protected void afterInvocationError(ServiceInvocationContext context, Throwable error)
ServiceInvokerServiceInvoker.retryInvocation(ServiceInvocationContext, Throwable). Does nothing by default.afterInvocationError in class ServiceInvoker<EjbServiceFactory>context - the current invocation context.error - the exception that caused the invocation failure.protected Object afterInvocation(ServiceInvocationContext context, Object result)
ServiceInvokerafterInvocation in class ServiceInvoker<EjbServiceFactory>context - the current invocation context.result - the result of the invocation (returned by the called method).