For this assignment, you will use RMI to create a client/server program with two databases one for employees and one for projects.
The employee database is to have the following fields:
The project database is to have the following fields:
The Employee Name, Department, Project Name and Client fields can be stored as strings. The Start Date and Completion Date fields should be stored using the Java Date class. The Employee Number and Project Number fields can be stored as integers.
Your program should have two servers. One for the employee database and one for the project database. Each of these databases can simply be a List of records. Both databases are to be stored in a serialized file when the server program is not running. Each serialized file is to be stored in the same directory as its server. When each server starts its execution, it will read in the contents from the serialized file to initialize the database. If the serializable file does not exists, the server is to create the file and start with an empty database. The server is to write out to the serialized file anytime the contents of the database is changed. This will keep the serialized file in-sync with the database so the server will not need to write out the database when the server's execution is stopped.
Each of these databases will have its own client program to allow for the adding, modifying and deleting records to/from in the database. Below is a possible interface for the employee client. A similar interface can be used for the project client.i
A java program has been created to show a possible user interface in Mp2Gui.java.