I have created a simple test application which does nothing more than printing "Hello World!" to the browser and registering itself to an application event queue. This leads to Comet Servlet 3 Push to be activated. When I deploy the example on GlassFish 3.1.2 and open it in the browser, some of the Comet requests return status code 200 (which is ok) and some of them return code 500 (which is not ok). Also some of the requests only take some milliseconds, some take one second and some take 30 seconds. Sometimes the requests are even canceled.
GlassFish log does not show any exception in log file.