users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Mon, 10 Nov 2008 10:36:20 PST

Suppose my transaction isolation level IS READ_COMITTED. What would happen exactly in my example. How and who prevents T2 from commiting. (Lock() is not the one doing it since it doesn't even get the chance to act. T2 is commiting before it ever gets called in T1)
Thanks.
[Message sent by forum member 'vladbalan' (vladbalan)]

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