On client side I wanted to use an
applet that speaks http to the server via HttpURLConnection class. On the server side, i wanted to use a servlet... The client(applet) first logs in with a user name.
Once logged in, the client should be able to send a msg to server(via post method ). It also has a text area to receive text messages sent to the server from other clients. This is where I have a problem-
How does the client know when to ask server if any new messages have been received. The client could poll the server, but I wanted a more asynchronous method where the server could alert clients that a new message has been received...