Book Image

Building Web Services with Java EE 8 [Video]

By : Mario-Leander Reimer
Book Image

Building Web Services with Java EE 8 [Video]

By: Mario-Leander Reimer

Overview of this book

<p>The Java Enterprise Edition is one of the leading application programming platforms for enterprise Java development. With Java EE 8 finally released and the first application servers being available, it is time to have a closer look at how to develop modern and lightweight web services with the latest API additions and improvements.</p> <p>This video course is a comprehensive guide showing you how to develop state-of-the-art RESTful web services with the latest Java EE 8 APIs. We start by giving an overview of Java EE 8 and the latest API additions and improvements. Then you will implement, build, and package your first working web service as a prototype for the remainder of the course. Then you will delve into the details of implementing synchronous RESTful web services and clients with JAX-RS. Next up, you will learn about the specifics of data binding and content marshalling using the JSON-B 1.0 and JSON-P 1.1 APIs. Then you will learn how to leverage the power of asynchronous APIs on the server- and client-side, and you will learn to use Server-Sent-Events (SSEs) for push communications. The final section will cover some advanced web service topics such as validation, JWT security, and diagnosability.</p> <p>By the end of this course, you will have a thorough understanding of the Java EE 8 APIs required for lightweight web service development. Also, you will have implemented several working web services to provide you with the required practical experience.</p> <h1>Style and Approach</h1> <p>This course on using the latest Java EE 8 APIs is packed with step-by-step instructions and examples that are directly applicable in practice. The different sections of this course will focus on important topics when developing web services with Java EE 8.</p>
Table of Contents (6 chapters)
Chapter 6
Advanced REST APIs
Content Locked
Section 3
Diagnosability: Logging, Metrics, and Tracing
In a highly distributed environment, the diagnosability triangle of logging, metrics, and tracing play a crucial role. Java EE 8 and JAX-RS provides a lot of extension points for third-party open source components to retrofit these features. This video shows how you can add logging, metrics, health checks, and tracing to your Java EE 8 webservice with minimal code. - Use Jersey LoggingFeature for request-response logging - Use Eclipse MicroProfile for metrics and health checks - Use OpenTracing APIs and Jaeger for tracing