glassfish_at_javadesktop.org wrote:
> Hello,
>
> i was wondering what happens in slide 42 here (http://developers.sun.com/learning/javaoneonline/2007/pdf/TS-4902.pdf ) if T1's commit() takes place between the lock() and flush() calls of T2.
>
In this case T2 will fail during the flush() call with
OptimisticLockException. You should only consider the lock to be
"obtained" successfully if the flush() call goes through.
-Mitesh
> Both transactions commit succesfully?
> [Message sent by forum member 'vladbalan' (vladbalan)]
>
> http://forums.java.net/jive/thread.jspa?messageID=316488
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>