• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is my design right?

 
Ray Cheeny
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In server,I have three classes(RemoteAccess,FactoryConnection,DBServer).
DBServer use the Naming.rebind("Factory",f) and f is the object of the FactoryConnection(extends UnicastRemoteObject) which returns the object of the RemoteAccess(extends UnicastRemoteObject).
1>Is that right?
2>And which class should I invoke the LockManager class?
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ray,

1>Is that right?

That looks OK to me.

2>And which class should I invoke the LockManager class?

RemoteAccess looks like the best candidate. That way each client has a reference to it.
Hope this helps,
Michael Morris
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic