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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...