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?
posted 13 years ago
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