I forgot to mention the important part:
I have a RoomManager class which gets static calls from the webpage and this is the one I defined in dwr.xml file.
However, this class has List<RoomServer> rooms where I have different RoomServers that have been started. (RoomServer is a Thread which handles in/out messages for one particular room)
And the above UserSession stuff and methods and everything is forwarded to a particular RoomServer by
RoomManager based on roomID parameter given by the page itself. |