https://github.com/jetty/jetty-examples
Eclipse Jetty® - Examples
https://github.com/jetty/jetty-examples
Last synced: 3 months ago
JSON representation
Eclipse Jetty® - Examples
- Host: GitHub
- URL: https://github.com/jetty/jetty-examples
- Owner: jetty
- License: other
- Created: 2024-01-10T16:07:22.000Z (about 2 years ago)
- Default Branch: 12.0.x
- Last Pushed: 2024-04-09T14:30:33.000Z (almost 2 years ago)
- Last Synced: 2024-04-09T17:06:28.525Z (almost 2 years ago)
- Language: Java
- Homepage: https://eclipse.dev/jetty
- Size: 674 KB
- Stars: 3
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README

[](https://github.com/jetty/jetty-examples/actions/workflows/ci.yml)
# 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][7] 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][8] 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][9] for a breakdown of webapp examples.
---
### All Example Branches
| Branch | Min JDK | EE | Servlet | Namespace | Supported |
|--------------|---------|------|---------|-------------------|-----------------------------------------|
| [12.1.x][10] | 17 | EE11 | 6.1 | `jakarta.servlet` | Yes |
| [12.1.x][10] | 17 | EE10 | 6.0 | `jakarta.servlet` | Yes |
| [12.1.x][10] | 17 | EE9 | 5.0 | `jakarta.servlet` | Yes |
| [12.1.x][10] | 17 | EE8 | 4.0 | `javax.servlet` | Yes |
| [12.0.x][6] | 17 | EE10 | 6.0 | `jakarta.servlet` | Yes |
| [12.0.x][6] | 17 | EE9 | 5.0 | `jakarta.servlet` | Yes |
| [12.0.x][6] | 17 | EE8 | 4.0 | `javax.servlet` | Yes |
| [11.0.x][1] | 11 | EE9 | 5.0 | `jakarta.servlet` | No (as of January 2024) [See #10485][4] |
| [10.0.x][2] | 11 | EE8 | 4.0 | `javax.servlet` | No (as of January 2024) [See #10485][4] |
| [9.4.x][3] | 8 | EE7 | 3.1 | `javax.servlet` | No (as of June 2022) [See #7958][5] |
[1]: https://github.com/jetty/jetty-examples/tree/11.0.x
[2]: https://github.com/jetty/jetty-examples/tree/10.0.x
[3]: https://github.com/jetty/jetty-examples/tree/9.4.x
[4]: https://github.com/jetty/jetty.project/issues/10485
[5]: https://github.com/jetty/jetty.project/issues/7958
[6]: https://github.com/jetty/jetty-examples/tree/12.0.x
[7]: embedded/README.md
[8]: standalone/README.md
[9]: webapps/README.md
[10]: https://github.com/jetty/jetty-examples/tree/12.1.x