if (!(component instanceof SessionBeanComponent)) {
EjbLogger.EJB3_LOGGER.asyncMethodSupportedOnlyForSessionBeans(component.getComponentClass(), method);
// just invoke normally
return componentView.invoke(interceptorContext);
}
final CancellationFlag asyncInvocationCancellationFlag = new CancellationFlag();
interceptorContext.putPrivateData(CancellationFlag.class, asyncInvocationCancellationFlag);
// keep track of the cancellation flag for this invocation
this.remoteAsyncInvocationCancelStatus.registerAsyncInvocation(invocationId, asyncInvocationCancellationFlag);
try {
return ((Future)componentView.invoke(interceptorContext)).get();