Re: About Question enthuware.oce-ejbd.v6.2.403 :
Posted: Tue Oct 20, 2015 4:20 am
Quote from specs: 4.5.2.2To enable asynchronous invocation on a method that returns a value, two things must be done:
1. The method's return type must be return Future<V> in the bean class as well as in the interface.
Alternatively, the bean-class method of an asynchronous method that is exposed via a Local or Remote business interface can be written without explicit use of the Future<V> API. In this case, the bean-class method declares a return type of V, where the same type appears as the parameterized type of Future<V> in the corresponding business interface method signature.
Quote from specs: 4.5.12. Put @Asynchronous annotation on the method definition in the bean class code. There is no need to apply this annotation in the method declaration in the remote interface.
Line 10 should be a correct answer too@Asynchronous can be applied to a business method of a bean class or to a method of a Local/Remote business interface.