[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB
do-not-reply at jboss.com
Thu Jan 17 22:17:49 EST 2008
for the client side: what you see is the correct behavior.
in your removeLink method, when you execute
fromNode = em.merge(fromNode);
| remoteNode = em.merge(remoteNode);
you're losing the references to the client's entities uNode and zNode. so when you call resynch(uNode) you're merging the old state over the changes that were just made.
for the server side: it's hard to tell what code is being executed, but the behavior will be different since the entities are managed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121156#4121156
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121156
More information about the jboss-user