This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Lock Manager  RSS feed

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using LockManager for implementing lock/unlock methods. My remote object has an instance of LockManager so that remotedataaccess can call these methods.
Is this design right? or LockManager should not be with Connection obj?
pl help me.
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my design , I create a ConnectionFactory(extends UnicastRemote) object which has an instance of Data and LockManager,return an instance of Connection object(which is remote object also), and ctor for Connection object accept two parameter 1- Data and 2- LockManager
Sam
 
Nagu Rathina
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam, dont u have a wrapper class for Data in client side, which implements all public methods of Data?
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sam,
Can you explain what's about your Connection Object?And what's about your ConnectionFactory?Is it your RMI Server?
 
Nagu Rathina
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam, will u store LockManager.class in remote clients also?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!