Can servlet send messg/data to applet by itself
Vijay Kumar Vankadara
posted 13 years ago
No. Servlets work by HTTP, which is a request-response protocol. The requests have to be initiated by the applet side. There are some tricks you can try like holding the HTTP connection open on the Applet side and having the servlet periodically return another data set, but these are ENORMOUSLY wasteful on the server side; basically you tie up a thread per client. Your best bet is to poll on the applet side. It's not hard, and will meet your needs.