posted 22 years ago
Hi there,
I was looking at many lock/unlock designs discussion in this forum and still couldn't find a way to pass in clientID when calling lock. I have a similar as yours but there is no notion of clientID. If I have something like:
public class ServerImpl extends UnicastRemoteObject implements IServer
{
public void reserveSeat( clientID, flightID, numSeats )....
{
lock(recordNo);
read(...);
modify(....);
unlock(recordNo);
}
}
public class DataExt extends Data
{
public void lock(int record)...
{
}
}
Can you give me some pointers on how to pass clientID to DataExt?
Thanks in advance,
Brandon