Skip to content

jetty/jetty-examples

Repository files navigation

jetty logo

12.0.x

Eclipse Jetty® - Examples

This is a collection of examples of how to use various features present in the Eclipse Jetty server and Eclipse Jetty client.

There are a few major categories of examples.

Embedded Examples

Using Embedded Jetty is extremely powerful way to include Jetty in your Java application using Code (instead of configuration) to setup a Jetty server or Jetty client.

Here you will see answers to common questions about how to integrate various features of Jetty, and also how to enable features of 3rd party libraries within Jetty (such as JSP, REST, and CDI).

See embedded/README.md for a breakdown of embedded examples.

Standalone Examples

The Standalone examples present fully formed ${jetty.base} directories that can be used to understand how to configure the jetty module system and its various components to reach an end goal.

See standalone/README.md for a breakdown of standalone examples.

Webapp Examples

A collection of various WAR files that can be used to demonstrate how to use web and JVM features in Jetty.

See webapps/README.md for a breakdown of webapp examples.


All Example Branches

Branch Min JDK EE Servlet Namespace Supported
12.0.x 17 EE10 6.0 jakarta.servlet Yes
12.0.x 17 EE9 5.0 jakarta.servlet Yes
12.0.x 17 EE8 4.0 javax.servlet Yes
11.0.x 11 EE9 5.0 jakarta.servlet No (as of January 2024) See #10485
10.0.x 11 EE8 4.0 javax.servlet No (as of January 2024) See #10485
9.4.x 8 EE7 3.1 javax.servlet No (as of June 2022) See #7958