Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes What to do after flight search? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "What to do after flight search?" Watch "What to do after flight search?" New topic

What to do after flight search?

Murphy Patrick

Joined: Sep 27, 2001
Posts: 11
I am not able to figure out what is supposed to happen when the user books a seat.
Is it supposed to update the database file or just update the in-memory data?
The only thing I could find in the instructions was:
"The user must be able to book one or more seats on a chosen flight. If the flight cannot provide those seats, the user must be informed. It is not necessary to provide for live updates on multiple clients when new bookings are made at other clients."
It does not say whether the data must be written back to the file or only the in-memory data should be updated.
Another question: should the system allow the user to add new flights, that is, specify an origin, destination, flight number, etc?
I couldn't find any such requirement in the instructions. So am I missing something?
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17260

What they mean is that if User A books a flight, User B's front-end does not need to be refreshed with the new data that A changed. But yes you do need to update the db.db file when a booking occurs.

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: What to do after flight search?