Jetty has moved!
Jetty is a project at the Eclipse Foundation.
Homepage:http://www.eclipse.org/jetty
Downloads: http://download.eclipse.org/jetty/
Documentation:http://www.eclipse.org/jetty/documentation/current/
About:http://www.eclipse.org/jetty/about.php
Jetty Powered:http://www.eclipse.org/jetty/powered/
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Cometd/Bayeux

Jetty includes a servlet implementation of the Bayuex protocol of cometd from the Dojo Foundation.

Cometd is a message bus for Ajax web applications that allows multi channel messaging between client and server - and more importantly - between server and client. The paradigm is publish/subscribe to named channels.

To run the demo:

and point your browser at http://localhost:8080/cometd. There is the usual comet chat room demo, echo demo and time sync demo. All of them are implemented with dojo.

Icon

Using the jetty maven plugin may not work if you are running with jetty-6. In that case, start jetty from the command line as normal as the cometd demo will be deployed by default.

Echo demo prints data using RPC style messaging over cometd. Time sync, is just a test that uses the timesync extension to calculate a timeoffset with the server. The time displayed below is the server time and should be the same for all clients no matter what their local clocks are set to.
 

The jetty implementation has extra features beyond the protocol:

  • A declarative filter/security mechanism
  • detection for multi-window

There is more information on the cometd.org website, but here's a few links to get you started:

Read the page on Stress Testing Cometd for more information on how to tune and scale jetty for Bayeux.

hassle gregw(at)mortbay.com for more details (and to write them up here).

  • No labels
Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery