• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I modify the signature of any method of Data class ?

 
morph wang
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I modify the signature of lock()/unlock() method ?
If not, and it's true that RMI dosn't guarantee the thread is the same between diferrent method invokation, it will be impossible to track which client is locking record.
Or, is it mandatory to track the Client ID? After all, we can control that the client who is going to unlock a record is holding the lock of the same record.
any comment will be appreciated!
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I modify the signature of lock()/unlock() method ?
Let's put it this way: you can get away with it, provided you give good reasons why you do it.
If not, and it's true that RMI dosn't guarantee the thread is the same between diferrent method invokation, it will be impossible to track which client is locking record.
It is true, and it is certainly not impossible. Give each client its own server object to talk to. Browse through old group articles, it's an almost permanent topic of conversation.
Or, is it mandatory to track the Client ID?
Read the requirements carefully - they imply that you need to.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic