Solving Lost Update Problem with Statefull Session Bean

Hi ,

do you know lost update problem ? My problem is how can solve this problem with statefull session bean . I want to mention about this problem.

For example : your web application have 2 client.

step by step our problem

1- Client 1 reads A from database and A = 10

2- Client 2 reads A from database and A = 10

3- Client 1 write A to database then A = 20

4- Client 2 write A * 3 to database and A = 30

but Client 2 must be write to database 60.

Can we make that when client 2 want to write , it should be informed . Because A is changed by other Client .

Have you any idea ?

[652 byte] By [geuslenna] at [2007-10-2 17:19:52]
# 1
this side answer my question : http://www.javaworld.com/javaworld/jw-07-2001/jw-0713-optimism-p2.html
geuslenna at 2007-7-13 18:35:50 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...