InfoQ

News

Jetty 7.0 released

Posted by Alex Blewitt on Oct 08, 2009

Community
Java
Topics
Application Servers ,
Web Servers
Tags
Jetty ,
Continuations

The release of Jetty 7.0 was announced today and is available for download from its new home at Eclipse.org as well as via the maven repository. This version represents an evolution of Jetty 6.0, and represents a significant reorganisation of the codebase as well as numerous performance improvements.

InfoQ covered the move of Jetty to Eclipse earlier in the year; and whilst Jetty 6.0 will still be supported, new features are being targeted at 7.0. Both Jetty 6.0 and 7.0 are based on the Servlet 2.5 API; the experimental Jetty 8.0 is tracking the Servlet 3.0 API which is expected to be finalised next year.

One of the key features of Jetty 6.0 was the introduction of Continuations at the Servlet layer, which allows long-lived client connections (such as those used by CometD, also known as the Bayeux protocol). InfoQ previously covered the Jetty 6.0 release and demos of continuations show how they can be used to scale up the number of concurrent users without compromising the number of threads (and associated overhead).

The success of this technique led to Jetty's proposal of asynchronous servlets in the Servlet 3.0 draft specification. Jetty 7.0 implements these continuations in such a way that they can run unchanged on Servlet 3.0 implementations, and fall back (to non-asynchronous, blocking) in non-Jetty Servlet 2.5 implementations.

Since the move to Eclipse, the code has been refactored (the org.mortbay prefix has been replaced with org.eclipse), and the monolithic server.jar has been split into its constituent bundles (jetty-server.jar, jetty-servlet.jar, jetty-io.jar etc.). One of the side benefits of modularisation has been a more enforced separation of concerns between the different bundles, which in turn has led to a more modular approach to embedding. Whilst Jetty is now a set of valid OSGi bundles (with well-defined dependencies), it can still be run outside of an OSGi runtime.

The porting document describes the differences in the packages; since a number of class names have changed, there is an automated tool that can convert configuration files to use the new names for Jetty 7.0. Future upgrades (e.g. to Jetty 8.0) will be much more seamless, since the packages won't undergo a future rename or repackaging.

The cometd-jetty project, based on the older Jetty 6.0, has been deprecated in favour of cometd-java based on Jetty 7.0, and which now lives at CometD.org. A demo is available which shows the benefit of asynchronous continuations by providing a number of AJAX clients, which create long-lived connections to the back-end server but without increasing load.

Lastly, the makers of Jetty, Webtide (bought by Intalio last month) have also announced Jetty-Hightide, an open-source offering which includes a number of open-source stacks including:

  • Glassfish's JSP
  • JTA from atomikos
  • Maven plugin
  • Ant integration
  • Spring configuration
  • Setuid

The current version of Hightide is available to download is currently based on Jetty 6.0, but a revised version including Jetty 7.0 will be available in the near future.

Jetty is available under a dual-license including Apache License 2.0 as well as the Eclipse Public License 1.0 from www.eclipse.org/jetty. In addition, Jetty packages are also available from Codehaus for other platforms, like RPMs and Debs packages for Linux systems.

JSP compiler by Erik Bengtson Posted Oct 9, 2009 7:16 AM
  1. Back to top

    JSP compiler

    Oct 9, 2009 7:16 AM by Erik Bengtson

    Is there a JSP compiler for this release? I couldnt find in maven repository

Educational Content

The Power of Visibility: Driving a Lean-Agile Transition

Kelley Horton discusses the reasons why her organization transitioned to Lean-Agile, the approach used and the visual tools helping them minimize WIP, concluding that visibility leads to success.

Panel: Modular Java

Alex Blewitt, Kevin Seal and Alex Buckley answer Java modularity-related questions: when is modularity needed, how to address it, and what are the improvements in OSGi-based development.

Whither the Smartphone? Future Directions in Smartphones and Mobile Development

Adam Blum discusses the current trends in mobile development and smartphones, trying to predict what will happen in this area over the next 5 years so a developer would know what to expect.

Cogs in the Machine: Testing Code Embedded in an Impenetrable Framework

Roy Osherove discusses the difficulties met when trying to test code embedded in a framework (cog), presenting several solutions to create unit tests for cogs, using Silverlight code as example.

Confessions of A New Agile Developer

This short article is a first-person case history of someone taking up Agility for the first time. It covers the problems and reactions that are common to most teams and most developers.

Scott Chacon on Git and GitHub

Scott Chacon talks about the technologies that power GitHub (Erlang, Redis,...), and the benefits of Git as a version control and as a storage system. Also: ShowOff, a JS-based presentation tool.

Reformulating the Product Delivery Process

Israel Gat, Erik Huddleston and Stephen Chin present how Inovis realized a higher product throughput by using three unconventional Kanban practices and a Lean Release Management tool called APROPOS.

Enterprise Mashups: Why Do I Care?

Ross Mason discusses how to use enterprise mashups by applying a number of patterns, such as FeedFactory, Super Search, and Pipeline, in order to find new ways to benefit from existing enterprise data