Client Implementation - Applet
public class ChatImpl extends Applet implements Chat{ public ChatImpl ( ) throws RE { . . . } public void init ( ) { . . . try { UnicastRemoteObject.exportObject(this); cs = (ChatServer)Naming.lookup( . . .); cs.register(this, name); } . . .} /* other applet methods for GUI, including calls to cs.postMessage(Message m) and cs.listChatters */ public void chatNotify(Message m) throws RE { // display message }}
use rmic to create stubs and skeletons on the client side