This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?