Defining the Client InterfaceIn this application, both the server and client are exporting remote objects, so the client must implement a remote interface. The server is a client in the sense that it calls the passMessage() method of client. The client exports the passMessage() method in the same way as the server exports its remote methods. The ClientInterface declares only one method, which is used to post a message to the client. Listing 11.3
ClientInterface.java
|
||
|
||
Copyright © 2001 www.universalteacher.com |
||