Monthly Archives: August 2011

GWT and JNDI

Many folks want to use some features beyond the bare servlet basics with GWT, such as JNDI lookups. It’s not hard to set up, but there are a couple of steps to it so here’s a detailed guide. Since GWT switched to using Jetty for its hosted mode (also known as development mode) back at GWT 1.6, lots of people … Continue reading

Posted in GWT, Jetty | 11 Comments

Sifting Logs in Jetty with Logback

Ever wanted to create log files at the server level that are named based on some sort of arbitrary context?It is possible to do with Slf4j + Logback + Jetty Webapp Logging in the mix. Example projects for this can be found at github https://github.com/jetty-project/jetty-and-logback-example Modules: /jetty-distro-with-logback-basic/ This configures the jetty distribution with logback enabled at the server level with  … Continue reading

Posted in Jetty, Servlets | 3 Comments

NoSql Sessions with Jetty7 and Jetty8

When Jetty 7.5.0 is released we will have officially started to dabble in the area of distributed session handling and storage. To start this out we have created a set of abstract classes around the general concept of NoSQL support, and have prepared an initial implementation using MongoDB. We will also be working on Ehcache and perhaps Cassandra implementations over … Continue reading

Posted in General, HTTP, Jetty, Servlets | Tagged , , | 5 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

CometD JSON library pluggability

It all started when my colleague Joakim showed me the results of some JSON libraries benchmarks he was doing, which showed Jackson to be the clear winner among many libraries. So I decided that for the upcoming CometD 2.4.0 release it would have been good to make CometD independent of the JSON library used, so that Jackson or other libraries … Continue reading

Posted in cometd, Jetty | Tagged , , , , | 2 Comments