Hi everyone,
I was
testing my application and I've discovered that after calling <b>unbind</b> and checking with <b>list</b> that the RMI registry doesn't contain the entry for my remote object, the clients can still invoke methods on the remote object at their leisure. No exceptions are thrown!!!
However, new clients get an exception (which is the right behaviour) upon trying to get a remote object.
Moreover, if I close the Server application completely than I do get the expected behaviour, the clients (new or old) will get an exception.
Now, I could close the server all the time without fancying around with <b>unbind</b> but I am afraid that I am only hiding a bigger problem; maybe my RMI approach is not the right one.
My remote object has an instance variable which is the Data class. All clients are expected to get stubs that point to the same instance of the remote object.
I am thinking that the Data class was passed somehow by copy and not by reference to the client.
Testing is done in the same JVM, on the same machine.
Any ideas on why this might happen?
Thank you all in advance,
Adrian