I have been considering writing a chat application in
java to see if I can do it. I am plannign to use RMI to send information back and forth between clients and servers but have a few questions about how to actually get this to work:
I guess when the user clicks submit it sends the response to the server which saves the
string into a vector and then the vector is returned to the client to be added to a JList
If I have many clients connecting will they have access to the same vector and it will just keep building as people add text??
also can I use threads on the client to query from the server every 5 seconds or so to grab the vector and repaint the list box??
Is this gross inefficient? IS there a better design... please enlighten me.