[Java] Updating data
Say in a inventory system scenario where User 1 calls up this particular product data object that contains information including quantity in stock. If for some reason, user 1 goes away from his desk for awhile. User 2 comes along and calls up the same data on his computer and then updates it. User 1 will no longer have the most recent information.
What's the best way to ensure that User 1 does get the most recent data?
I'm not really programming this thing, I'm just thinking theortically.
__________________
Looking out the window, that's an act of war. Staring at my shoes, that's an act of war. Committing an act of war? Oh you better believe that's an act of war
|