• Post Reply Bookmark Topic Watch Topic
  • New Topic

Lock,client id, java.rmi.server.ObjID

 
mohammad alis
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody has used rmi.server.ObjID class for uniquely identify different clients?
I try to use it in my lock method ,
clientObjID= new ObjID();
lockedRecs.put(clientObjID,recordKey);
but in unlock, when I use
clientObjID= new ObjID();
if (lockedRecs.get(clientObjID)).equals(recordKey)
I get a new ObjID ,...
how RMI uniquelly identify each client, and how can I use this?
appreciate your help
mohammad alis
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!