更新时间:2021-07-02 19:23:17
封面
版权信息
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
What's in Java EE 8?
Improvements in EE 8
Overview of Java SE 8
Lambdas streams and default methods
CDI 2.0
JSON Processing 1.1
Working with JSON documents
JSON Processing API
JSON Binding 1.0
JAXRS 2.1
Servlet 4.0
Server Push
JSF 2.3
Bean Validation 2.0
Java EE Security API 1.0
Summary
The CDI Advantage Combined with JPA
Introduction to context and dependency injection
CDI programming model
CDI for Java SE 8
RequestContext Activation
Enhancing events
Asynchronous events
Ordered events
Annotation literals
Java Persistence API (JPA)
Entities
Performing CRUD operations with entities
Entity listeners
Validations the entity
Understanding Microservices
Traditional monoliths
Need for delivering new features quicker
Team size and dependency
Multiple small units of work
Smaller code base
Coding practices
Follow domain-driven design
Document it
Build for failure
Infrastructure tooling as part of code
Single responsibility
The need for REST
Scale only what needs to scale
The bad parts yes there are a few
Building and Deploying Microservices
Fat JAR
Fat JAR approach
Skinny WAR
Examples using Payara Micro
Building our services
Running our services
MicroProfile
Java EE already has support
WildFly Swarm
Spring Cloud
Docker containers
Working with distributed teams
Building custom images
Running multiple containers
Fat JAR or Skinny WAR with Docker
The choice
Java EE Becomes JSON Friendly
REST prefers JSON
JSON a first-class citizen
JSON in databases
No more third-party libraries
JSON processing
JSON-P 1.1
JSON Pointer and JSON Patch
JSON merge patch
JSON Collectors
JSON binding
Similar to JAXB with default mappings
Standardizes current solutions (Jackson Gson and so on)
Mapping between classes and JSON
Customisation APIs
Few tips in practice