Home ProjectsNotes

Remote Method Invocation


his assignment requires that you extend your Health Care System to include the Pharmacies. The Doctor will communicate with the Pharmacies using Java Remote Method Invocation (RMI).

From the Doctor’s point of view, the Pharmacy acts as a Java server application and the Doctor acts as a Java client application. The Doctor will use the same Graphical User Interface (GUI) as in the last assignment but with some additional views. However, now, it must now be able to send prescription information to the Pharmacy using RMI. The Pharmacy application waits for prescription requests from the Doctor application. When it receives a prescription, the Pharmacy application sends back to the Doctor application an ID for that particular prescription. The Pharmacist then starts working on the prescription. When the Pharmacist has finished doing so, the Pharmacy application informs the Doctor application again using RMI, passing the ID as a parameter in its callback.

or this assignment, you need to introduce the Pharmacy application into your Health Care System, and to modify the Doctor application to use RMI for communication with the Pharmacy. You don’t need to change the socket communication between the Patient and the Doctor. The overall system should look like that shown in Figure 1. The Pharmacy application will run as a remote server object waiting for RMI communication from the Doctor. The Doctor still uses socket connections to communicate with the Patients.

Information


Project Due on May 9
Demo Date: May 9, Wed.1-2:30pm
Demo Place: ECI Lab
Demo Time: Email TA for time

Handout
Project 3 Template
(UPDATED 05/03/12)

Email for the password