File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes A question on RMI Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply locked New topic
Author

A question on RMI

Song Lixin
Greenhorn

Joined: Nov 11, 2003
Posts: 19
Hello ranchers,
I think everyone using RMI should have meet the problem.But I searched and did not found any related thread.

We know that a live client reference has a lease with a specified time. If a client does not refresh the connection to the remote object before the lease term expires, the reference is considered to be dead and the remote object may be garbage collected. The lease time is controlled by the system property java.rmi.dgc.leaseValue. The value is in milliseconds and defaults to 10 minutes.

Because of these garbage collection semantics, a client must be prepared to deal with remote objects that have "disappeared."

My question is:
How does a client know that the remote object has "disappeared"?


SCJP1.2<br />SCJD<br />SCMAD
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 10816
    
  25

Hi Song,

I have closed this topic as it is essentially the same as your previous question.

Please don't post the same question multiple times.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A question on RMI
 
Similar Threads
NX:WeakHashMap, simple question
FBNX: Locking, clientID and deadlock...
terminate of programs
DGC.dirty() and Lease
RMI Lease