The tutorial walks you step by step on implementing JAX-RS (Resteasy) with CDI (Weld) on a high performance servlet container (Undertow)
================== Undertow is a light weight java based webserver and servlet container. It is at the heart of WildFly the application server from Redhat. It performs remarkably well as benchmarked by the TechEmpower benchmarks
Weld is the reference implementation of JSR 299. You can learn more about CDI
Resteasy is Redhat's implementation of (JSR 311 & JSR 339) the spec for implementing restful webservices in Java. Jersey being the reference implementation.
Check out the Wiki for a details of the implementation:-
-
Lesson 1: Servlets on Undertow Learn how to create a servlet container and configure it programmatically. Once configured attach the container to the Undertow server to serve requests.
-
Lesson 2: JAX-RS(Resteasy) on Undertow Enhance lesson 1 to add JAX-RS capabilities. Add Resources to your application
-
Lesson 3: Inject CDI managed beans into JAX-RS resources Enhance lesson 2 to inject beans into your resource classes.
-
Lesson 4: Add OAuth support Example uses Facebook as the OAuth provider.