• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic