Starter Kit for building standalone application embedding Jetty Application Server
Description
Jetty-Bootstrap library make it easy to embed Jetty into your maven project and package a standalone app. Provides a fluent API to expose web application(s) and service(s), configure the server settings and package the whole application with a low footprint.
- Read the documentation for usage details.
- Browse sample projects source using this lib here.
Requirements
- Java 8
- Maven
Sample
In case you have your war file on the file system (e.g. /tmp/webapp.war), it is as simple as this:
JettyBootstrap bootstrap = new JettyBootstrap();
bootstrap.addWarApp("/tmp/webapp.war", "/contextName");
bootstrap.startServer();
Maven dependency to include on your project
<dependency>
<groupId>org.teknux</groupId>
<artifactId>jetty-bootstrap</artifactId>
<version>x.x.x</version>
</dependency>
Sponsor
- Supported by JetBrains
- Developed with IntelliJ IDEA