Wednesday, November 19, 2008

Cometd and Chat

Here is how to set up a comet server with a chat demo.

Cometd is a protocol for pushing data to webbrowsers (so that browsers don't have to poll servers).
Jetty is a server that implements jetty.
http://cometdproject.dojotoolkit.org/documentation/cometd-jetty/quick-start

To get started

svn co http://svn.cometd.com/trunk cometd
cd cometd
mvn
cd cometd-jetty
mvn
cd demo
mvn jetty:run-war
now open two browsers to localhost:8080 and run some nice clear demos, based on the behavior toolkit.

And it works. That never happens.