Re: About Question enthuware.oce-ejbd.v6.2.409 :
Posted: Sun Jul 10, 2016 5:43 am
I have doubts about this question and answer. According to specification (4.5.1):
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.
P.S.
Explanation doubt: shouldn't Thread.sleep be avoided (also according to specification):
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.
P.S.
Explanation doubt: shouldn't Thread.sleep be avoided (also according to specification):
.The enterprise bean must not attempt to manage threads.