I've the following situation:
I wish the "methodB" was executed 10 times paralleling. But it only happening when the "methodB" is called from another bean.
Why the annotation "@Asynchronous" does not work when the method is called from another method in the same class?
Thanks.
It only works for methods call via a client proxy, for example a
@Local
or@Remote
interface. This is described in the EJB 3.1 specs (section 4.5 - 4.5.1):