BOSH (bidirectional streams over synchronous HTTP) is a hidden way to implement two-way client-server communication in situations where a true-push server is not allowed, it is most obvious that the server would forward data to the browser client without the need for client polling.
It works as a client sending a request to the server, and the server does not respond immediately ... rather, it remembers the request, but only responds when it has data to send. When this happens, the client immediately sends another request, so there is almost always a “saved request” sitting on the server, ready to send data to the client.
At least the way I think it works!
Update : My question is how can you do this using standard Java EE Java stacks. Is this possible using Servlet 2.x (I'm a little rusty, so I don’t know if you can refuse to send an answer or something else) or only using extensions through the shell, for example Atmosphere?
source
share