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

Moderator: admin

johnlong
Posts: 185
Joined: Mon Jun 20, 2016 5:06 pm
Contact:

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

Post by johnlong » Thu Jun 01, 2017 12:12 pm

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.

admin
Site Admin
Posts: 8304
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin » Thu Jun 01, 2017 10:09 pm

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
If you like our products and services, please help us by posting your review here.

johnlong
Posts: 185
Joined: Mon Jun 20, 2016 5:06 pm
Contact:

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

Post by johnlong » Fri Jun 02, 2017 10:02 am

Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests