I am keeping working on the assignment of "Bodgitt and Scarper". I just designed the middle-layer by using RMI. I used the RMI connection factory model. That model will guarantee to create new remote object for each client. The model works fine.
But since cookie is used in the project, may the factory connection model not be needed? Even if the server just use the same thread for different clients and one remote object are shared by several clients, the cookie will identify the client and make the synchronization work. I tested by using NONE-factory model. The clients could lock and update and unlock in synchronized way.
Does that mean cookie make factory-model unnecessary?