We have an issue in a Atmosphere application using streaming or long-polling.
After the js code is subscribing for a request then the server-side code is doing a request.suspend() and then a broadcasting.
In the time of broadcasting the suspend call seems is not completed and then the glassfish thrown error 503 and this error invalidates the htt session of the client.
Very hard for me to provide a sample.
I advice tzo use the atmosphere-pubsub sample project.
The idea is if you don't have authentication in the project like in the atmosphere-pubsub you cannot see the error.
In this sample project if authentication will be added then should be reproducable. Eventually adding broadcasting directly after suspend will allow to reproduce the rror easy.
See the thread when I discussed this error with Jeanfrancois::
Unfortunately my app I cannot deliver because of the complexity(app using a db connection) and license reasons.