Applications Class for Observers






Next is the application for the observer objects. Note that

  1. We do not have to register the observer objects with the RMI Registery since the thermometer object obtains references to them when they register as observers.

  2. But the observers do have to lookup the name of the thermometer in the RMI Registery to find out on which machine it is running and the port to which it is listening.

Next is the source for the ObserverAppl.java file.