jsr338-experts@jpa-spec.java.net

[jsr338-experts] persistence context propagation and JTA transactions that "return home"

From: Christian von Kutzleben <cvkutzleben_at_versant.com>
Date: Fri, 9 Aug 2013 15:00:46 +0200

Dear group,

As of 2.1 the spec says, that persistence contexts are only propagated
locally, while JTA transactions
are also propagated remotely.

(assuming, all methods marked transaction required and all using the same
persistent unit:)

If bean 1 in VM1 calls bean 2 in VM2 and that calls bean 3 in VM1, then
currently there are
two distinct persistence contexts for the same JTA transaction in VM1.

IMO we should enhance the spec, and should base it around the idea:
"same VM, same JTA txn => same persistence context"

Then bean 3 would work in the same persistence context like bean 1, which I
think is desirable.

Thank you!

Christian

-- 
*Christian von Kutzleben*
Chief Software Engineer
Versant GmbH, Subsidiary of Actian Corporation
christian.vonkutzleben_at_actian.com
PHONE +49 40 60990-273
FAX +49 40 60990-113
www.actian.com
Versant GmbH is incorporated in Germany. Company registration number: HRB
54723, Amtsgericht Hamburg. Registered Office: Halenreie 42, 22359 Hamburg,
Germany. Geschäftsührer: Marc Monahan, Fred Gallagher, Volker John
[image: Facebook-icon] <http://www.facebook.com/actiancorp>[image:
Twitter-icon] <http://twitter.com/actiancorp>[image:
Linked-In-icon]<http://www.linkedin.com/company/actian-corporation>[image:
You-Tube-icon] <http://www.youtube.com/actiancorporation>[image:
http://davidwalsh.name/dw-content/googleplus-icon.png]<http://www.gplus.to/actiancorp>
*[image: cid:image001.jpg@01CC7916.C4DCFC40] <http://www.actian.com/>*
This transmission is confidential and intended solely for the use of the
recipient named above. It may contain confidential, proprietary, or legally
privileged information. If you are not the intended recipient, you are
hereby notified that any unauthorized review, use, disclosure or
distribution is strictly prohibited. If you have received this transmission
in error, please contact the sender by reply e-mail and delete the original
transmission and all copies from your system.








image008.png
(image/png attachment: image008.png)

image007.jpg
(image/jpeg attachment: image007.jpg)

image004.png
(image/png attachment: image004.png)

image001.png
(image/png attachment: image001.png)

image003.png
(image/png attachment: image003.png)

image002.png
(image/png attachment: image002.png)