[jboss-user] [EJB 3.0] - Re: problems with optimistic locking/persistence data in EJB

waynebaylor do-not-reply at jboss.com
Fri Jan 25 16:18:23 EST 2008


try this:

  |                 t.begin();
  |                                 //queues an update from stale uNode
  | 		//Node mergedNode = em.merge(fromNode);
  | 
  |                                 //refresh reads back queued model
  | 		em.refresh(fromNode);
  | 
  | 		t.commit();
  | 

i commented out the call to merge (i think this is the call that's undoing your changes) and changed the argument to refresh (now it's fromNode instead of mergedNode).

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123664



More information about the jboss-user mailing list