File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes java general question(transaction realted) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "java general question(transaction realted)" Watch "java general question(transaction realted)" New topic
Author

java general question(transaction realted)

Ramya prince Prince
Greenhorn

Joined: Apr 05, 2008
Posts: 3
Hi consider i have developed a web based application. i have a page which will update an employee salary. my application is running. suppose consider two manager opened edit page to edit the employee salary. one manager thought to increase 3000$, and another manager thought to minus 2000$. the page is opened by two manager. 'Edit salary' page a combo box that will accept the new salary. not the increment value. both the managers see 10000$ in their edit page. first manager update it to 12000$ and he submitted it. transaction completed. Second manager don't know the previous edition. so he is having the old value which is 10000$. so he is changing it to 9000(minus 1000$).

But actually it should be 11000$. how to solve this problem?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32611
    
    4
Transaction-based database access?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32611
    
    4
And welcome to JavaRanch
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java general question(transaction realted)
 
Similar Threads
obstruction to growth
How to set a radio button selected from a JSP page, with the help of values extracted from database?
Encapsulation ?
Record Locking in multi-user
Interview Functional Questions