An RMI based Swing Application
Following is the use case diagram for the implementation.
Following is the package diagram of the project. The application was written in NetBeans 6.5.
Package Diagram
Class Diagram
The following image shows the Airline Headquarters user interface view. The HQ can enter new airplane records or can view all records present in the database. The "connect to Server" button performs the Naming.Lookup to look for the bound remote interface object. Considering that the remote object is already bound to the java.rmi.Naming. Once the instance of the remote object is obtained, all functionalities can be performed.
Airline Headquarters UI
View All Records UI
The following images show the travel agent user interface view. A travel agent can search for a seat or can reserve a seat if that flight has enough capacity.
Search for a Reservation
The following image shows the different types of searches which the travel agent can perform on the airline records.
Reservation Search UI
Once, a flight having enough seats is found, the travel agent can then reserve a seat for the passengers. After a reservation is successfully made, a confirmation window is displayed showing all the details entered.
Seat Reservation
Seat Reservation Confirmation









Comments
This is just for academic purpose....