Suppose there are number of clients (browsers) connected with the server (one to one communication is happening between each client and server).
Now some time what I want to achieve is, if one client send a request, response of that request should be sent to all the clients.
I am sure, response without request is not possible so I guess, and I will need dummy request from all the clients to send that response�
It�s happening but �timing� is BIG issue. I want other clients to send dummy requests only when one of the clients has sent an �original request� or I should ignore all the dummy requests until I get an �original request� from any of the client...
You can do this using server push. For more information on server push visit Push Servlet or do a google search. I have used server push a long time back in a project. If you have any doubt, regarding implementation, please get back to me.
Originally posted by Ben Souther: HTTP is a stateless protocol.
Once a client makes a reqeust and the server responds, the connection is severed. Except for this brief instant while this is going on, there are no clients connected to the server.
Sorry for delaying in follow up.
And one more sorry but I didn't quite understood this? Container runs many threads at the same time, each serving one client. So all threads can use a common place to talk...
And moreover how it is related to my question? :roll:
Joined: Oct 11, 2004
Exactly, I thought the same. So I said "dummy request". It's kind of pulling only... [ May 07, 2007: Message edited by: ankur rathi ]