This content has been marked as final.
Show 1 reply
-
1. Re: AS 7.1 MDB1 persists an entity and sends key in message to MDB2; 2 tries to read entity but fails irregularly
chrisinmtown Apr 2, 2012 10:27 AM (in response to chrisinmtown)I should have mentioned that the database is set up as READ COMMITTED. And the solution to the problem seems to be in managing transactions appropriately. The solution I found for MDB1, the one that creates an entity and sends a message, was to have it call a method to create the entity (instead of using the entity manager directly). Critically, that method is annotated to require a new transaction. Hope this helps someone out there.