Sun GlassFish Enterprise Server v3 Prelude Developer's Guide

ProcedureEnabling Comet

Before running a Comet-enabled application, you need to enable Comet in your application server by adding a special property to the http-listener element of the domain.xml file.

The following steps tell you how to add this property.

  1. Open domain-dir/config/domain.xml in a text editor.

  2. Add the following property in between the http-listener start and end tags:

    <property name="cometSupport" value="true"/>
  3. Save domain.xml and restart the server.