annotation can be applied to a method of a business interface. But when I put it there and // NO CODE HERE on bean method answer is incorrect.@Asynchronous can be applied to a business method of a bean class OR to a method of a Local/Remote business interface.
I have checked all combinations:
-- only on interface method
-- only on bean method
-- on both methods
and in all these cases my test is passed.
Explanation doubt: shouldn't Thread.sleep be avoided (also according to specification):
.The enterprise bean must not attempt to manage threads.