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 ?

