Page 2 of 2

Re: About Question enthuware.oce-ejbd.v6.2.412 :

Posted: Thu Jun 01, 2017 12:12 pm
by johnlong
Sorry for the off-topic. But I have another question about transaction propagation.
Excerpt from O'reilly EJB 3.1 book
If an EJB calls another EJB with a different transaction scope, the persistence context, regardless of whether it is extended, is not propagated.
I think this is wrong, as transaction shall propagate from BMT to CMT. Could you please clarify? Thank you.

Re: About Question enthuware.oce-ejbd.v6.2.412 :

Posted: Thu Jun 01, 2017 10:09 pm
by admin
I am not sure in what context the book says that but you might want to talk to the author of the book about it.

It is true that Persistence context is propagated along with the transaction. But if two beans have different transaction attributes that require different transactions to be started, the persistence context cannot propagate.
You should also see Section 7.6.3 Persistence Context Propagation of JPA Specification.
HTH,
Paul

Re: About Question enthuware.oce-ejbd.v6.2.412 :

Posted: Fri Jun 02, 2017 10:02 am
by johnlong
Thank you.