I implemented my server using RMI. The instruction says that server should be able to serve multiple client, so you need to make your server multi threaded. However with RMI even a single instance of DataClient is able to serve multiple Users. So is it still necessary to make the server multi threaded?
I tried deploying DataServer as multi-threaded where every connection to dataserver will first get copy of DataClient, then this copy of dataClient will serve user's request. However I have to transport the entire DataClient to the user, which does not serve the purpose of RMI (wherein only stub is transported, and not the whole object). I think I am doing something horrible wrong, I just can't think of a good design to implement multi-threaded server in RMI. Any help in this respect will be greatly appreciated