Skip navigation.

building

The cometd-jetty code is currently both part of the jetty release and part of the cometd release. It can be built from either checkout, however as it currently depends on jetty, it is simpler to build from a checkout of jetty.

Building from cometd-jetty

Checkout either one of the releases from http://svn.cometd.com/tags/ or the latest from http://svn.cometd.com/trunk and build:

svn co http://svn.cometd.com/trunk cometd
cd cometd
mvn
cd cometd-jetty
mvn
cd demo
mvn jetty:run-war

Building from jetty

  • Check out Jetty (or download a release)
  • To build from the top level:
    mvn install
    
  • Cometd is in contrib/cometd for jetty-6.1 and in modules/extra/cometd for jetty-7

  • To run cometd, there are several options:
    • From the top level of a jetty release, run:
      java -jar start.jar
      

      The cometd demo war is deployed by default on http://localhost:8080/cometd/

    • To run from maven, cd to the cometd/demo module and run:
      mvn jetty:run-war
      
    • To run from an IDE, import the projects and run the dojox.cometd.demo.CometdDemo class as a main. It has an embedded jetty server which runs the demos on http://localhost:8080/cometd/