Skip to content

microbean/microbean-jersey-netty-cdi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microBean™ Jersey Netty CDI Integration

Build Status Maven Central

The microBean™ Jersey Netty CDI Integration project integrates Jersey and Netty into CDI 2.0 environments in an idiomatic way.

Installation and Usage

Add this project as a runtime-scoped dependency in your CDI 2.0-based Maven project:

<dependency>
  <groupId>org.microbean</groupId>
  <artifactId>microbean-jersey-netty-cdi</artifactId>
  <version>0.4.0</version>
  <scope>runtime</scope>
</dependency>

Then start a CDI SE container. Any JAX-RS applications or resource classes found on the classpath will be served up by Eclipse Jersey and Netty on 0.0.0.0 port 8080 by default, or port 443 by default if there is an SslContext available to your CDI container. You can pass host and port System properties (or source them from any other microBean™ Configuration Configuration instances) to change your application's endpoint.

HTTP 1.1 and HTTP/2 requests, including upgrades via HTTP's upgrade header, ALPN or prior knowledge, are fully supported.

Related Projects