Author(s): Mario-Leander Reimer
Edition: Paperback
Publisher: Packt Publishing
Year: 2018
Language: English
Pages: 116
Cover......Page 1
Title Page......Page 2
Copyright and Credits......Page 3
Packt Upsell......Page 4
Contributors......Page 5
Table of Contents......Page 7
Preface......Page 9
Technical requirements......Page 14
Java EE version history......Page 15
Overview of Java EE 8......Page 16
What's new in Java EE 8?......Page 17
Getting started with Java EE 8 microservices......Page 18
Containerizing Java EE 8 microservices......Page 21
Summary......Page 24
Chapter 2: Building Synchronous Web Services and Clients......Page 25
Implementing basic REST APIs with JAX-RS......Page 26
Using sub-resources......Page 30
Error handling in JAX-RS......Page 34
Implementing web service clients with Java EE 8......Page 38
Testing Java EE 8 web services......Page 41
Jersey Test Framework......Page 42
Test Containers......Page 44
Summary......Page 46
Introduction to content types and content negotiation......Page 47
Easy data binding using JSON-B......Page 52
Flexible JSON processing with JSON-P......Page 55
Implementing hypermedia-driven REST APIs......Page 59
Summary......Page 63
Benefits and usage scenarios of asynchronous processing......Page 64
Basic idea......Page 65
Implementing asynchronous web services......Page 66
Using ManagedExecutorService and server-side callbacks......Page 70
Registering callbacks......Page 72
CompletableFuture......Page 73
Implementing asynchronous web service clients......Page 74
Summary......Page 77
What are SSEs?......Page 78
Implementing SSE on the server-side......Page 79
Implementing SSE REST clients......Page 83
Implementing and sending SSE broadcasts......Page 88
Summary......Page 91
Applying Design by Contract – adding validation......Page 92
Using JSON Web Tokens for authentication......Page 95
Diagnosability – logging, metrics, and tracing......Page 100
Summary......Page 105
Other Books You May Enjoy......Page 106
Index......Page 109