Hi,
I have a booking method in my client side facade. When the client enters the number of seats required for the booking and clicks the continue button, i present the user with a dialog box which contains the flight information including the requested number seats. I only call the booking method in my facade when the user clicks the book button in the dialog box. Clicking this button closes the dialog box and displays a status message at the bottom of the original screen. This message is displayed for as long as the booking takes.
My questions are as follows:
1. Should I prevent the user from performing any other searches until the booking is confirmed?
2. Should I allow the user to continue performing searches, eventhough the previous search has not completed?
I create a new
thread for the application to perform the processing of the booking, which could be delayed if other clients have locks on the same record or are waiting to obtain the lock on the record. I am also using the SwingUtilities.invokeLater() method to update the status message displayed at the bottom of the screen.
I hope all this makes sense, please comment.
Regards,
Chiji