Bookmark Topic Watch Topic
  • New Topic

A question on RMI

 
Song Lixin
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Report post to moderator
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"?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
    Bookmark Topic Watch Topic
  • New Topic