![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Help is available for each task.
Task 1
Change the value of the constant Compile all Java source files.
Use the javac program: javac *.java
From the
Start a new DOS console and go to the directory that contains the java code.
Run two instances of the client.
Start two additional DOS consoles and go to the directory for the Java code.
In each DOS console, prepare to execute the following command:
java RMIClient but do not hit the enter key, just yet. When both consoles are ready, hit the Enter key for both so that start running at roughly the same time.
Notice the output from the different consoles.
The Server will show when it creates each object.
When each Notice that the local garbage collector does not destroy any objects until near the end of the run. You will also note that after the demonstration has finished it will take 10 minutes before the server complete releasing all of the objects. This shows that the lease term of the remote objects has been set to 10 minutes. Since the clients have terminated, the server will wait until the end of the lease term before it marks the objects as being 'clean'. Copyright 1996-2000 jGuru.com. All Rights Reserved. |