I wondered if it is necessary an explicit client connections removal.. Is it UnicastRemoteObject.unexportObject() method call necessary for every object that represents a client connection and that is exported by server ?
Or the objects are garbage collected automatically by Java when there are no references from the client ?
Oracle Certified Master Java SE6 Developer(SCJD),
OCE JEE 6 JSP and Servlets Developer,
Java EE6 Java Server Faces Developer.
I use this feature to disconnect my remote clients and I am not shore that the is really necessary but I don't know an other way to make a remote object unable to process remote requests. The reason is that the client my still reamin active but its link with net is gone. If you see the Client like a GUI I then you can presume that after you close the GUI the garbage collector resolve the client related resources. But the client is more than UI, the UI use some client mechanisms.
What I try to say here is that the client needs an explicit log of feature and this feature can be triggered by the UI - but it is not necessary.
Consider the follow scenario, you can add a control layer which follows thee clients if a client does something wrong then it close its connection - but it still keep the client running.
Regards M [ March 29, 2007: Message edited by: Mihai Radulescu ]