Oracle GlassFish Server 3.0.1 Application Development Guide

Enabling Comet

Before running a Comet-enabled application, you need to enable Comet in the HTTP listener for your application by setting a special attribute in the associated protocol configuration. The following example shows the asadmin set command that adds this attribute:

asadmin set"true"

Substitute the name of the protocol for http-1.