This document outlines how to write a simple Comet application using Glassfish and Grizzly Comet APIs. It discusses initializing Comet, serving a static page with a hidden iframe to connect to the Comet servlet, handling requests and notifying clients of updates. When a client action occurs like a move in a tic-tac-toe game, the server notifies all clients which update using JSON data. Clients reconnect to the Comet servlet by refreshing the hidden iframe to continue listening for updates.