dcsimg
how to send alertness to Client Machine
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Prashant_makhloga
Posted On:   Saturday, November 18, 2006 03:29 AM

how to send alertness to Client Machine ,for e.g. a new mail has arrived or certain event has occured using jsp/servlets And Tomcat.

Re: how to send alertness to Client Machine

Posted By:   WarnerJan_Veldhuis  
Posted On:   Saturday, November 18, 2006 04:52 AM

HTTP is a stateless protocol, meaning the client does not have a permanent connection to the server. That means you have to figure out a way to get in touch with the client. But since the server cannot initiate a connection with the browser, the client has to start the connection, but that's difficult since the client doesn not know *when* to start. So you've got(amongst others) two options:


1) Create an applet that has a permanent connection with the server. Applets can connect to the server they originate from.

2) Let the page refresh every n-seconds. For checking mail, every 1 minute would be enough.
About | Sitemap | Contact