Hi,
This is my first posting on this forum, and I'm asking because I haven't been able to find any other threads discussing this topic.
I've created a Data class which implements the interface sent by Sun. The Data class has a LockManager dealing with locking, and a FileDataSource which reads and writes a RandomAccessFile.
I've decided to create a Socket based network solution, and each time the SocketServer class gets a client socket request, it creates a new Data instance for that request. In this way each client has a unique Data instance on the server side.
In pseudocode my lock method in the Data class looks like this:
My question is if it's "legal" to use the Data class hashCode() as lockCookie when trying to lock a record? If it can cause any problems, please let me know.
Johnny
[ February 20, 2008: Message edited by: Johnny Peyton ]