actually, in our system, we're not deleting data, but that's a very good question. under our current architecture, if we could delete data, user 2 would delete the order, and then user 1 would try to update the order. we're using bad practice and thus our EJB would throw a SQLException at that point i believe. user 1 would see a ugly SYSTEM ERROR OCCURRED page with a hidden java stack trace.
i think in a more rich client arcitecture perhaps, user 2 (who should only see a read only copy of the data and not be aloud to update or change the order till user 1 is done ) would be able to register a listener and be notified once user 1 is finished with the item. then their screen would be converted to an update screen. i suppose this thing could be done via browser interface as well. under the delete circumstance, user 2 would be notified that the record has been deleted.
|