what is solution to change seat status back to available
posted 12 years ago
My design decision for unpaid itenerary is put them in a stateful session bean 'shopping cart'. In the case the user close the browser or session time out before user pay the itenerary, then we need to change the reserved seat status back to available.
How to deal with this? My thinking is put those logic in ejbRemove, but seems not very good, since it's hard to handle the senario when the update seat status failed.