| Author |
Is my design right?
|
Ray Cheeny
Ranch Hand
Joined: Aug 21, 2002
Posts: 74
|
|
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
Joined: Jan 30, 2002
Posts: 3451
|
|
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
|
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
|
 |
 |
|
|
subject: Is my design right?
|
|
|