InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Jetty 7.0 released

Posted by Alex Blewitt on Oct 08, 2009

Sections
Development,
Operations & Infrastructure
Topics
Application Servers ,
Java ,
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
  1. Back to top

    JSP compiler

    by Erik Bengtson

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

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.