posted 21 years ago
thank you very much ..i`ve one more question i`ve a rmidataserver and i implement the lock and unlock there like that :
public void lock(int record, Object obj)
{
//put this object with its record in hashmap and if there is another one wait to notify.
//call lock in class data which just check for record num only if it is correct
}
public void unlock(int record,object obj)
{
//check if this object have a key to unlock in hashmap
}
is this is right or should i keep the signture of lock and unlock as it is in class data
thanx for your help