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

waynebaylor do-not-reply at jboss.com
Sat Jun 9 20:38:33 EDT 2007


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



More information about the jboss-user mailing list