Hi Padmaja,
After going thru some posts in this forum I understand that the LockManager is Singleton ...
I don't want to get into a philosophical argument here but a LockManager is not necessarily a singleton. It absoulutely was not in my design.
I. Where does it resides(in suncertify.server???) and where do we call that(in both DataAccessRemote and DataAccessLocal???)
I put mine in the suncertify.db package, but I suppose it could go in suncertify.server just as well. No need to call it in local mode. My local implemetation had no-op versions of lock() and unlock() so just did nothing.
2. Whether the methods, namely
lock(clientID,recNo)
and unlock(clientID,recNO) to be defined in this class??
That's what I did and that seems to be the most appropriate in my opinion.
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