I've got some objections about the third answer (correct).
There is no information about the transaction attribute. If this means that I should assume that default attribute REQUIRED is used, than fine - this answer is correct.Bean1 calls EJBContext.getRollbackOnly() and gets true.
But if i.e. REQUIRES_NEW is used, than the Bean 1 will get 'false' value, but the Bean 2 transaction was rolled back.
What do you think about that?
Thanks in advance,
Cheers!