This content has been marked as final.
Show 2 replies
-
1. Re: Multiple EntityHomes - One transaction
monkeyden Mar 18, 2009 7:46 PM (in response to monkeyden)Anyone? To clarify and simplify, I have two distinct persistence contexts (2 schemas) which I need to pull into the current/same transaction to ensure that they are all updated or they all fail. When I call persist on the first update and the second one fails, the first is not rolled back.
I've seen a reference to something similar in the old Seam forum, but it involved two EntityHomes using the same persistence context. I have also added:
<begin-conversation join="true" flush-mode="manual"/>
to the xyz.page.xml file but it looks like EntityHome.persist() is explicitly calling flush() anyway.
Thanks
-
2. Re: Multiple EntityHomes - One transaction
newion Mar 21, 2009 8:11 AM (in response to monkeyden)Make sure your application server supports distributed transactions and is configured properly.