Category Archives: Java

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 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

Lies, Damned Lies and Benchmarks

Benchmarks like statistics can be incredibly misleading in ways that are only obvious with detailed analysis. Recently the apache HTTPCore project released some benchmark results whose headline results read as: Jetty HttpCore Linux BIO 35,342 56,185 Linux NIO 1,873 25,970 Windows BIO 31,641 29,438 Windows NIO 6,045 13,076 Looking at these results, you see that HttpCore has better throughput in … Continue reading

Posted in General, Java, Jetty, Servlets | 8 Comments

Cometd + Wicket

First off, I think I like wicket, its a pretty neat framework and it has some pretty solid integration with ajax which is interesting. I have to say though that having spent a lot of time on the whole long polling, ajax push, cometd type of communication approach the whole idea of ajax polling back to a server for a … Continue reading

Posted in Java | 9 Comments