quick start
Checkout, Build and Run
To build and run from a checkout, you need java 1.5 and maven >2.0.8 installed:
svn co http://svn.cometd.com/trunk cometd
cd cometd
mvn
cd cometd-jetty
mvn
cd demo
mvn jetty:run-war
This will run a demo jetty server on port 8080.
Download, Install Run
Import into Eclispe
- Install m2eclipse plugin http://m2eclipse.codehaus.org/
- Use Maven Import Wizard to import projects into workspace: File -> Import -> Maven Projects -> Select .../jetty-6.1.x/contrib/cometd as root directory, Finish
- Start cometd chat demo by starting dojox.cometd.demo.CometdDemo (eg. right click, Run As -> Java Application)
What the demo includes
- Chat, echo and timesync demos
- The chat demo has necessary code in client to handle transient network failures and server restarts.
- The server code includes BayeuxStartupListener example with instances of BayeuxService class to handle server side subscriptions and services, such as monitoring, echo service and chat room member list.