| UMBC | CSEE | Tarr | CS491D |
This application will require that both the client and server have remote objects. The server has a remote object which implements the following interface:
public interface ChatServer extends Remote {
public void registerClient(ChatClient client)
throws RemoteException;
public void unregisterClient(ChatClient client)
throws RemoteException;
public void broadcast(String msg) throws RemoteException;
public String[] getHistory(int n) throws RemoteException;
}
These methods do the following:
The client has a remote object which implements the following interface:
public interface ChatClient extends Remote {
public void update(String msg) throws RemoteException;
}
This is the object that the client registers with the chat server.
The update() method of this interface does the following:
Implement the client interface any way you like, either textual or graphical.
Test your application with at least two clients and the server.
Your project code must also be well documented and use a reasonable indentation style. In particular, places where design patterns are implemented should be noted in the code.
Finally, a short report, no more than five pages in length, should be submitted describing the design patterns that appear in your project, either as part of the RMI framework itself or explicitly as part of your server or client implementation.
As in all your work, NO COPYING OR PLAGIARISM. If such is detected, no credit for the project will be given and appropriate actions for academic dishonesty will be taken.
submit cs491d project2 <filenamelist>
where filenamelist is a list of one or more files. You can submit a
file as often as you like; the latest file submitted overwrites any
previous submissions. To list the names of the files you have submitted,
type
submitls cs491d project2
To remove a previously submitted file, type
submitrm cs491d project2 <filename>
No project will be accepted after December 13, 1999. NO EXCEPTIONS! NO EXCUSES!
|
Bob Tarr University of Maryland, Baltimore County tarr@umbc.edu | UMBC | CSEE | Tarr | CS491D |