COMP 310
Spring 2010

Lec26: Remote Dynamic Class Loading with RMI,  Chat Program Use Cases

Home  Info  Owlspace  Resources

Remote Dynamic Class Loading with RMI

Today we will see if we can get everyone's RMI demo code from Lec24 to work and actually send code across the web. 

Remote dynamic class load process (all transparent to coder and user):

  1. Sender serializes the object's data into a byte stream, including the object's class name and the java.rmi.server.codebase property's value in the header of the byte stream.
  2. The byte stream is transmitted from the sender to the receiver.
  3. The reciever reads at the object's class name in the byte stream header and looks to see if it has that class already in its local class path.

 

RMI Chat Program

Today, we will also start working on our chat program project.    See the requirements for the chat program in HW07.

Use Cases

A use case is an example of how a user might interact with an application.    To develop an application, one of the very first things that a developer must work with the customer to collect and analyze as many use cases as possible.    It is from these use cases that a picture is built up that tells the developer how exactly the user (or any external entity) will interact with the system being built and thus how the sytem needs to be built.

A Use Case Diagram (a standard type of UML diagram) is used to visually represent a use case.   The main components of Use Case diagrams are the "actors", the users or other external entities, and the various components of the system being built.  Arrows are used to indicate interactions between components. 

In class we will develop some use cases for our chat program.

References:


© 2010 by Stephen Wong