File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lock Manager

 
Nagu Rathina
Ranch Hand
Posts: 31
  • 0
  • 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.
 
Sam Stackly
Ranch Hand
Posts: 109
  • 0
  • 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
  • 0
  • 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?
 
Jack Yang
Ranch Hand
Posts: 59
  • 0
  • 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
  • 0
  • 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