i-jetty 3.1 Released

Release 3.1 of i-jetty for Android is now available from the Android Market and the i-jetty download page. This release updates the embedded Jetty to jetty-7.6.0.RC4, although the majority of the changes have been to the Console, which is a webapp that allows you to interact with your Android device from a remote browser. Higlights include: pagination of large data … Continue reading

Posted in i-jetty | 4 Comments

WebSocket over SSL in Jetty

Jetty has always been in the front line on the implementation of the WebSocket Protocol. The CometD project leverages the Jetty WebSocket implementation to its maximum, to achieve great scalability and minimal latencies. Until now, however, support for WebSocket over SSL was lacking in Jetty. In Jetty 7.6.x a redesign of the connection layer allows for more pluggability of SSL … Continue reading

Posted in cometd, Jetty, WebSockets | Tagged , , | 3 Comments

CometD, Dojo and XDomainRequest

The CometD project implements various Comet techniques to implement a web messaging bus. You can find an introduction to CometD here. Web applications often need to access resources residing on different servers, making the request to access those resources a cross origin request and therefore subject to the same origin policy. Fortunately, all modern browsers implement the Cross Origin Resource … Continue reading

Posted in cometd | Tagged , , , , | 5 Comments

mvn jetty:run-forked

Being able to run the jetty maven plugin on your webapp – but in a freshly forked jvm – is a feature that has been requested for a loooong time. With jetty-7.5.2 release, this feature has been implemented, and it even works on your unassembled webapp. How to Run mvn jetty:run-forked That will kick off a Jetty instance in a … Continue reading

Posted in Jetty, Maven | 4 Comments

CometD and Opera

The Opera browser is working well with the CometD JavaScript library. However, recently a problem was reported by the BlastChat guys: with Opera, long-polling requests were strangely disconnecting and immediately reconnecting. This problem was only happening if the long poll request was held by the CometD server for the whole duration of the long-polling timeout. Reducing the long-polling timeout from … Continue reading

Posted in cometd | Tagged , | 2 Comments

CometD 2.4.0 WebSocket Benchmarks

Slightly more than one year has passed since the last CometD 2 benchmarks, and more than three years since the CometD 1 benchmark. During this year we have done a lot of work on CometD, both by adding features and by continuously improving performance and stability to make it faster and more scalable. With the upcoming CometD 2.4.0 release, one … Continue reading

Posted in cometd | Tagged , , | 3 Comments

CometD 2.4.0.beta1 Released

CometD 2.4.0.beta1 has been released. This is a major release that brings in a few new Java API (see this issue) – client-side channels can now be released to save memory, along with an API deprecation (see this issue) – client-side publish() should not specify the message id. On the WebSocket front, the WebSocket transports have been overhauled and made … Continue reading

Posted in Jetty | Tagged , , , , , , | 1 Comment

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

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