EXAMPLE CODE FOR "Comet & Reverse Ajax" by Crane & McCarthy, FirstPress 2008
The examples presented here use Groovy on Grails, a Java-based web technology stack. More details at http://grails.org. To get up and running:
0. Install Java on tyour machine if you need to. You'll need the JDK, not ju
st the runtime (JRE).
1. download and install Grails for your platform. The most recent version of Grails at time of writing is 1.0.3, which uses Jetty 6.1.7 internally. The Jetty cometd examples require Jetty 6.1.11 or higher, so...
2. Download a recent version of Jetty (e.g. 6.1.11) and replace the Jetty jar files in your grails installation. The files that I modified were:
3. Unzip the source folder into a directory. There are two Grails projects in here:
are covered by the Grails application 'cometd', which can be run in a similar fashion.