Hi,

I am not an expert in the area but I had the same problem a few
days ago. Your XML configuration seems ok to me.

What you need to make sure for optimistic locking to work
is to include the read of the record, the user edit time, and the update
of the record into one single transaction.

The only way I found to do this is with a client initiated transaction. 

You can have a look in my posting below for code snippets.
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=57794

Petros



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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to