posted 22 years ago
Client connects to RMI server and get the Remote object (obj).
This (obj) connects to a method in implementation class to return (new Implementation()) which is considered the Client ID.
When I run to Dos Windows (it means 2 Clients) and print the (new Implementation()) object, the message below shown:
Get Client ID: HelloServerImpl_Stub[RemoteStub [ref: [endpoint:[203.79.98.192:3141](remote),objID:[1ad086a:f336dba45f:-8000, 2]]]]
The message for the other Client is:
Get Client ID: HelloServerImpl_Stub[RemoteStub [ref: [endpoint:[203.79.98.192:3141](remote),objID:[1ad086a:f336dba45f:-8000, 4]]]]
You can notice the difference only in number 2 and number 4
Is that mean it is really different reference and then can be used as a Client ID???
Cheers