Distinguishing between several client se - TechRepublic
General discussion
July 19, 2000 at 12:38 AM
philippe_vh2

Distinguishing between several client se

by philippe_vh2 . Updated 24 years, 10 months ago

I have an RMI server to which several client sessions (running on one PC client) connect. To perform the record locking on the server I would like to obtain a unique handle to the client. Is there a way to do this? (getClientHost() returns the IPaddress but does not distinguish between the running instances when they run on one PC).
The program uses an object that has collections with lock and unlock possibilities.
Example :
– lock(“MASTER”, 12) will lock the 12th master object
– unlock(“MASTER”, 12) will unlock the 12th master object
– unlock(“ALL”) will unlock all objects locked by that client (should be JVM)
The program has been running well for some time while no two concurrent connections existed from the same client (using the IP address obtained by getClientHost()). The situation changed and now several clients are running on the same machine. I would prefer not to change the interface definitions or the client program.

This discussion is locked

All Comments