Is there a way to implement a socket server that services clients serially.
Generally the practice is to dispatch connected clients to a new thread that services requests and response however amounting to one thread per client on the server side.
I don't want to do this because I later want to port this app to Java ME that may have a limit on the number of concurrent threads running at a point of time.
I was wondering how to solve this problem?