Connected to localhost. The applet was renamed, and converted to an application. The OpenOffice.org client was then shown to accept connections from the StockOfficeProxy application. These items remained unchanged for the duration of the application. StockNotify is the remote interface for the stock observer.
Stock is the serializable object containing stock data.
The StockWatch and StockNotify interfaces, and the Stock and StockServer classes remained unchanged from the RMI example as it is shipped. Changes were limited to the StockOfficeProxy class. This design emphasizes that existing RMI services can be used as data sources, and that a proxy can communicate to the OpenOffice.org application to display and store the data. Implementation Details Getting updates from the StockServer There are two RMI interfaces defined in this application. The StockOfficeProxy class looks up the StockServer running on localhost using the StockWatch interface.