Sun Java Solaris Communities My SDN Account Join SDN
 
Tutorials & Code Camps

jGuru: Serializing Remote Objects: Client

 


[Help | API Docs | Short Course| Exercises]

In this exercise you will run the Client side of the Remote Object Serialization project. All of the files have been created for you.

In this exercise you will see how to use the Delegation Pattern to allow a service to migrate. This is covered in the Serializing Remote Objects section of the course notes.

Skeleton Code

Tasks

1. Move Stub files from the Server subdirectory.

2. Compile all of the class files for the client.

3. Run the RMI client program.

Where help exists, the task numbers above are linked to the step-by-step help page.

Solution Source

Demonstration

When the client is run in its DOS console, the output will be:

RemoteModelManager lookup successful
Remote version: Version 1.0
Local Version of the model loaded
LocalModel...Returning: Version 1.0
Local  version: Version 1.0

Exercises



Short Course



Copyright 1996-2000 jGuru.com. All Rights Reserved.