Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [EJB 3.0] - Re: difference between @Version and
 EntityManager.lock

scott.stark@jboss.org

2007-06-09


The OptimisticLockException indicates that the second client has a stale version of the entity, i.e. it won't be updating the latest version.

As far as I know, using the EntityManager.lock method will force the version to be incremented, whether or not you actually changed the entity.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052858#4052858

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052858
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.