Author Archives: gregw

Jetty-SPDY is joining the revolution!

There is a revolution quietly happening on the web and if you blink you might miss it. The revolution is in the speed and latency with which some browsers can load some web pages, and what used to take 100′s of ms is now often reduced to 10′s.  The revolution is Google’s  SPDY protocol which I predict will soon replace … Continue reading

Posted in HTTP, Jetty, Servlets | 9 Comments

Jetty WebSocket Client API updated

With the release of Jetty 7.5.0 and the latest draft 13 of the WebSocket protocol, the API for the client has be re-factored a little since my last blog on WebSocket: Server, Client and Load Test. WebSocketClientFactory When creating many instances of the java WebSocketClient, there is much that can be shared between multiple instances: buffer pools, thread pools and … Continue reading

Posted in Jetty | 24 Comments

Websocket Example: Server, Client and LoadTest

The websocket protocol specification is approaching final and the Jetty implementation and API have been tracking the draft and is ready when the spec and browsers are available.   More over, Jetty release 7.5.0 now includes a capable websocket java client that can be used for non browser applications or load testing. It is fully asynchronous and can create thousands … Continue reading

Posted in Ajax Comet, General, HTTP, Java, Jetty, Servlets, WebSockets | Tagged , , , , | 14 Comments

Prelim Cometd WebSocket Benchmarks

I have done some very rough preliminary benchmarks on the latest cometd-2.4.0-SNAPSHOT with the latest Jetty-7.5.0-SNAPSHOT and the results are rather impressive.  The features that these two releases have added are: Optimised Jetty NIO with latest JVMs and JITs considered. Latest websocket draft implemented and optimised. Websocket client implemented. Jackson JSON parser/generator used for cometd Websocket cometd transport for the … Continue reading

Posted in Ajax Comet, cometd, HTTP, Java, Jetty, Servlets, WebSockets | Tagged , , | 4 Comments

Jetty Overlayed WebApp Deployer

The Jetty Overlay Deployer allows multiple WAR files to be overlayed so that a web application can be customised, configured and deployed without the need to unpack, modify and repack the WAR file. This has the benefits of: The WAR file may be kept immutable, even signed, so that it is clear which version has been deployed. All modifications made … Continue reading

Posted in Jetty | 9 Comments

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

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

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

Cometd with annotations

Cometd 2.1 now supports annotations to define cometd services and clients.  Annotations greatly reduces the boiler plate code required to write a cometd service and also links well with new cometd 2.x features such as channel initializers and Authorizers, so that all the code for a service can be grouped in one POJO class rather than spread over several derived … Continue reading

Posted in Uncategorized | Leave a comment