Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Goals:
3. Ensure interoperability
Preliminary remarks:
Features of this small distributed system are the distribution transparency, the openness
Task:
2. implement client and server under strict adherence to the communication interface;
4. Investigate the RMI communication with the network snier, document your
observations and substantiated interpretations in a protocol.
Specification:
Server:
2. The delivery queue has a configurable limited length so that the latest n
3. Clients can retrieve message strings using the remote method nextMessage ()
wherein the server remembers for a limited time t which message was last sent to the respective
4. The memory time t is held individually for each client and always refreshed when a
Message retrieval from the client. After expiration of the memory time, the client becomes
complete
to forget.
6. The server remains robust against client misconduct and logs its actions into one
7. The server registers its remote interface under the name MessageService".
Interface:
Client:
1. The client has two functional areas: the editing and the reception. Both Functions are
part of a GUI in which the corresponding server is also configured can be.
2. As an editor client, messages with the remote method newMessage () are displayed the
server. In this case, the client implements an 'at-least-once' error semantics the message delivery.
3. As a read client, messages are sent with the remote method nextMessage () from the
Server, where the client provides a mode in which all available Messages are fetched and
displayed. The client implements a 'Maybe' error in message retrieval.
4. The client remains robust against server failures during a configurable tolerance interval
of seconds.
http://docs.oracle.com/javase/tutorial/rmi/overview.html
http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136424.html
Pay particular attention to the necessary security settings for the RMI Registry!