I wrote a Java game with some singleton classes. The specifications provide that several matches of this game can start on the same Server, so I used TheadLocal variables to instance Singleton classes in different thread. The problem is that when Server communicates with a Client it's like the Controller's thread change, so the instances of the ThreadLocal are resetted. Is this normal? What can I do?
Sorry for my bad english, thank you in advance.