posted 21 years ago
hi,all.
Do i need to include the modify method in my server interface? I think so.But i feel dilemma that should i modify the signature of it.
Because follow the golden rule of lock-write-unlock ,my modify method should be do the follow step: lock() ,db.modify(),unlock() .The question is all my lock method need a client connection id argument ,so i have to pass it to my modify method .As a result ,my modify method will be modify(DataInfo newData,ConnectionID cid).Does any one can tell me whether i misunderstand the meanings of instruction?
thx.
Certified for SCJP, SCJD, SCDJWS,SCEA and IBM 141- XML& Related Technologies