![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
In this exercise you will run the Server Side of an RMI demonstration 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
RemoteModelMgr.java
TasksCompile all of the class files for the server.
Create the
Run the RMI server program. Where help exists, the task numbers above are linked to the step-by-step help page. When you finish with this exercise, go on to the next one to finish this project. Solution Source
RemoteModelMgr.java DemonstrationWhen the server is run in its DOS console, the output will be: Registry created on host computer ROSA on port 10009
RemoteModelImpl object created
Bindings Finished, waiting for client requests.
After the client program has been run, you will notice the following output that follows: RemoteModelImpl...Constructor finished
LocalModel...Returning: Version 1.0
RemoteModelImpl...Returning delegated VersionNumber: Version 1.0
LocalModel...Returning: Version 1.0
RemoteModelImpl...Returning delegated VersionNumber: Version 1.0
Next MagerciseExercisesShort CourseCopyright 1996-2000 jGuru.com. All Rights Reserved. |