Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

 
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!
 
author
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
 
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic