users@glassfish.java.net

Re: How does an explicit EntityManager.lock() call prevent dirty reads in J

From: <glassfish_at_javadesktop.org>
Date: Tue, 11 Nov 2008 17:48:23 PST

I'm not sure what vladbalan is trying to achieve. TX1 changes are in the em1 persistence context until commit, so TX2 won't see them unless TX1 calls em.flush() after an update (but before TX2 starts) *and* his database is setup for read_uncommitted.

Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]

http://forums.java.net/jive/thread.jspa?messageID=316182