Hi Liang,
I am no RMI expert (know just enough to pass the exam
), but I have a guess that you may want to consider.
I guess that the unexportObject makes that your remote object is no longer behaving as such. And that also means that it no longer can detect whether any references from remote clients exist.
Perhaps someone more knowledgeable in RMI kan confirm or deny this?
Frans.