Message-ID: <573440986.3448.1369377937431.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3447_1489358174.1369377937431" ------=_Part_3447_1489358174.1369377937431 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Jetty includes a servlet implementation of the Bayeux= a> protocol of the CometD project from the Dojo Foundation= .
CometD is a message bus for Ajax web applications that allows multi chan= nel messaging between client and server - and more importantly - between se= rver and client. The paradigm is publish/subscribe to named channels.
To run the demo:
and point your browser at http://localhost:8080/cometd. Ther= e is the usual comet chat room demo, echo demo and time sync demo. All of t= hem are implemented with dojo.
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 w=
ith the server. The time displayed below is the server time and should be t=
he same for all clients no matter what their local clocks are set to.
The jetty implementation has extra features beyond the protocol:
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.------=_Part_3447_1489358174.1369377937431--