[jboss-user] [Beginner's Corner] - Re: simultaneous database updates thru webinterface

Wolf-Dieter Fink do-not-reply at jboss.com
Sat Mar 23 16:26:01 EDT 2013

Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the discussion

"Re: simultaneous database updates thru webinterface"

To view the discussion, visit: https://community.jboss.org/message/804447#804447

Hello Olena,
welcome to the forum.

If I understand your requremntes correct, this is a common problem.
You might set a lock first (pessimistic) and block other clients.
Or you use a 'version counter' and check the counter before you change (in the same transaction).

The second approach is better as it will not block other and if the browser or connetion fail you must not cleanup the lock.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130323/e3712445/attachment.html 

More information about the jboss-user mailing list