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.

To get started

svn co cometd
cd cometd
cd cometd-jetty
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.