Place all six .java files together with the client.policy file in the same folder.
From the command line run the following commands:
>start rmiregistry
>start
java TestServer
>start java TestClient //client1
>start java TestClient //client2
Push dialog box OK button to close client1.
Push dialog box OK button to close client2.
This works fine.
However, if I close client2 before client1 I get java.rmi.ServerException etc.
Why?
This only seems to be a problem when the clients have the same name, so I guess each client should be identified by something else than their name which is not necessary unique.
PS: I have been going back and forth for far too long on this little problem already and in the process I may have overlooked some (basic) cause for this problem to appear. Any help will be appreciated.
Best regards,
SvenT.