Hi Guys,
My RemoteData objects implement Unreferenced. When this object locks a record I assign the locked record number to a private instance variable called lockedRecord. If the client dies I have implemented the unreferenced method as follows :
public void unreferenced() {
if (this.lockedRecord != 0) {
lockManager.unlock(this, this.lockedRecord );
}
}
Is this correct?
I have tested it and it works. Is there a more elegant way of doing this?
Regards
Fred