Monthly Archives: April 2011

CometD Message Flow Control with Listeners

In the last blog entry I talked about message flow control using CometD‘s lazy channels. Now I want to show how it is possible to achieve a similar flow control using specialized listeners that allow to manipulate the ServerSession message queue. The ServerSession message queue is a data structure that is accessed concurrently when messages are published and delivered to … Continue reading

Posted in cometd | Tagged | 1 Comment

Jetty with Spring XML

Since the very beginning, Jetty has been IOC friendly and thus has been able to be configured with spring.  But the injecting and assembling the jetty container is not the only need that Jetty has for configuration and there are several other configuration files (eg contexts/yourapp.xml,  jetty-web.xml,  jetty-env.xml) that have needed to be in the Jetty XML configuration format. With … Continue reading

Posted in Java, Jetty, Servlets | Tagged | 4 Comments

Getting Started With Websockets

The WebSockets protocol and API is an emerging standard to provide better bidirectional communication between a browser (or other web client) and a server.  It is intended to eventually replace the comet techniques like long polling.   Jetty has supported the various websocket drafts in the 7.x and 8.x releases and this blog tells you how to get started with websockets. … Continue reading

Posted in Jetty | 11 Comments

CometD Codemotion Slides

The Codemotion conference slides of my talk on Comet and WebSocket web applications are available here: slideshare, download.

Posted in cometd | Tagged , , | Leave a comment

CometD Message Flow Control with Lazy Channels

In the CometD introduction post, I explained how the CometD project provides a solution for writing low-latency server-side event-driven web applications. Examples of this kind of applications are financial applications that provide stock quote price updates, or online games, or position tracking systems for fast moving objects (think a motorbike on a circuit). These applications have in common the fact … Continue reading

Posted in cometd | Tagged | 6 Comments

Jetty 7.4 new features

A release candidate of Jetty 7.4 is now available as both Jetty@eclipse and Jetty-Hightide@codehaus distributions. This release contains a number of new features which I will briefly introduce now, and make the target of more detailed blogs, webinars and wiki pages over the next few weeks: Jetty Overlay Deployer Jetty now includes a deployer that is designed to allow a … Continue reading

Posted in Jetty | 15 Comments

CometD Introduction

The CometD project provides tools to write server-side event-driven web applications. This kind of web application is becoming more popular, thanks to the fact that browsers have become truly powerful (JavaScript performance problems are now a relic of the past) and are widely deployed, so they are a very good platform for no-install applications. Point to the URL, done. Server-side … Continue reading

Posted in cometd | Tagged , , , | 5 Comments

CometD 2.1.1 Released

CometD 2.1.1 has been released. This is a minor bug fix release that updates the JavaScript toolkits to Dojo 1.6.0 and jQuery 1.5.1, and Jetty to 7.3.1 and 6.1.26. Enjoy !

Posted in cometd | Tagged , , , | Leave a comment

Is WebSocket Chat Simpler?

A year ago I wrote an article asking Is WebSocket Chat Simple?, where I highlighted the deficiencies of this much touted protocol for implementing simple comet applications like chat. After a year of intense debate there have been many changes and there are new drafts of both the WebSocket protocol and WebSocket API. Thus I thought it worthwhile to update … Continue reading

Posted in cometd, Jetty, WebSockets | 2 Comments