Jakarta EE Cookbook - Practical recipes for enterprise Java developers to deliver large scale applications with Jakarta EE.

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

An enterprise Java developer's guide to learning JAX-RS, context and dependency injection, JavaServer Faces (JSF), and microservices with Eclipse MicroProfile using the latest features of Jakarta EE. Key Features ------------ Explore Jakarta EE's latest features and API specifications and discover their benefits Build and deploy microservices using Jakarta EE 8 and Eclipse MicroProfile Build robust RESTful web services for various enterprise scenarios using the JAX-RS, JSON-P, and JSON-B APIs Book Description ---------------- Jakarta EE is widely used around the world for developing enterprise applications for a variety of domains. With this book, Java professionals will be able to enhance their skills to deliver powerful enterprise solutions using practical recipes. This second edition of the Jakarta EE Cookbook takes you through the improvements introduced in its latest version and helps you get hands-on with its significant APIs and features used for server-side development. You'll use Jakarta EE for creating RESTful web services and web applications with the JAX-RS, JSON-P, and JSON-B APIs and learn how you can improve the security of your enterprise solutions. Not only will you learn how to use the most important servers on the market, but you'll also learn to make the best of what they have to offer for your project. From an architectural point of view, this Jakarta book covers microservices, cloud computing, and containers. It allows you to explore all the tools for building reactive applications using Jakarta EE and core Java features such as lambdas. Finally, you'll discover how professionals can improve their projects by engaging with and contributing to the community. By the end of this book, you'll have become proficient in developing and deploying enterprise applications using Jakarta EE. What you will learn ------------------- Work with Jakarta EE's most commonly used APIs and features for server-side development Enable fast and secure communication in web applications with the help of HTTP2 Build enterprise applications with reusable components Break down monoliths into microservices using Jakarta EE and Eclipse MicroProfile Improve your enterprise applications with multithreading and concurrency Run applications in the cloud with the help of containers Get to grips with continuous delivery and deployment for shipping your applications effectively Who this book is for -------------------- This book is for Java EE developers who want to build enterprise applications or update their legacy apps with Jakarta EE's latest features and specifications. Some experience of working with Java EE and knowledge of web and cloud computing will assist with understanding the concepts covered in this book. Table of Contents ================= New Features and Improvements Server-Side Development Building Powerful Services with JSON and RESTful Features Web and Client-Server Communication Security of the Enterprise Architecture Reducing the Coding Effort by Relying on Standards Deploying and Managing Applications on Major Jakarta EE Servers Building Lightweight Solutions Using Microservices Using Multithreading on Enterprise Context Using Event-Driven Programming to Build Reactive Applications Rising to the Cloud – Java EE, Containers, and Cloud Computing Appendix: The Power of Sharing Knowledge

Author(s): Elder Moraes
Edition: 2
Publisher: Packt
Year: 2020

Language: English
Tags: java jakarta web java ee 2020

Cover
Title Page
Copyright and Credits
Dedication
About Packt
Foreword
Contributors
Table of Contents
Preface
Chapter 1: New Features and Improvements
Running your first Jakarta Bean Validation 2.0 code
Getting ready
How to do it...
How it works...
See also
Running your first Jakarta CDI 2.0 code
Getting ready
How to do it...
How it works...
There's more...
See also
Running your first JAX-RS 2.1 code
Getting ready
How to do it...
How it works...
See also
Running your first JSF 2.3 code 
Getting ready
How to do it...
How it works...
There's more...
See also
Running your first JSON-P 1.1 code 
Getting ready
How to do it...
How it works...
See also
Running your first JSON-B 1.0 code 
Getting ready
How to do it...
How it works...
See also
Running your first Jakarta Servlet 4.0 code 
Getting ready
How to do it...
How it works...
There's more...
See also
Running your first Jakarta Security code 
Getting ready
How to do it...
How it works...
There's more...
See also
Running your first MVC 1.0 code 
Getting ready
How to do it...
How it works...
See also
Chapter 2: Server-Side Development
Using Jakarta CDI to inject context and dependencies
Getting ready
How to do it...
How it works...
There's more...
See also
Using Jakarta Bean Validation for data validation
Getting ready
How to do it...
How it works...
See also
Using Jakarta Servlet for request and response management
Getting ready
How to do it...
How it works...
There's more...
See also
Using Server Push to make objects available beforehand
Getting ready
How to do it...
How it works...
There's more...
See also
Using EJB and JTA for transaction management
Getting ready
How to do it...
How it works...
There's more...
See also
Using EJB to deal with concurrency
Getting ready
How to do it...
How it works...
There's more...
See also
Using JPA for smart data persistence
Getting ready
How to do it...
How it works...
See also
Using EJB and JPA for data caching
Getting ready
How to do it...
How it works...
There's more...
See also
Using Jakarta Batch processing
Getting ready
How to do it...
How it works...
See also
Chapter 3: Building Powerful Services with JSON and RESTful Features
Building server-side events with JAX-RS
Getting ready
How to do it...
How it works...
There's more...
See also
Improving service's capabilities with JAX-RS and Jakarta CDI
Getting ready
How to do it...
How it works...
There's more...
See also
Easing data and objects representation with Jakarta JSON Binding
Getting ready
How to do it...
How it works...
See also
Parsing, generating, transforming, and querying JSON objects using Jakarta JSON Processing
Getting ready
How to do it...
How it works...
See also
Chapter 4: Web and Client-Server Communication
Using servlets for request and response management
Getting ready
How to do it...
How it works...
The load-on-startup servlet
A servlet with initParams
The asynchronous servlet
See also
Building a UI with template features using JSF
Getting ready
How to do it...
How it works...
See also
Improving response performance with Server Push
Getting ready
How to do it...
How it works...
There's more...
See also
Chapter 5: Security of the Enterprise Architecture
Domain protection with authentication
Getting ready
How to do it...
How it works...
See also
Granting rights through authorization
Getting ready
How to do it...
How it works...
See also
Protecting data confidentiality and integrity with SSL/TLS
Getting ready
How to do it...
How it works...
There's more...
See also
Using declarative security
Getting ready
How to do it...
How it works...
See also
Using programmatic security
Getting ready
How to do it...
How it works...
See also
Chapter 6: Reducing Coding Effort by Relying on Standards
Preparing your application to use a connection pool
Getting ready
How to do it...
There's more...
See also
Using messaging services for asynchronous communication
Getting ready
How to do it...
How it works...
See also
Understanding a servlet's life cycle
Getting ready
How to do it...
How it works...
See also
Transaction management
Getting ready
How to do it...
How it works...
See also
Chapter 7: Deploying and Managing Applications on Major Jakarta EE Servers
Understanding Apache TomEE
Getting ready
How to do it...
There's more...
See also
Eclipse GlassFish
Getting ready
How to do it...
There's more...
See also
Red Hat WildFly
Getting ready
How to do it...
There's more...
See also
Chapter 8: Building Lightweight Solutions Using Microservices
Building microservices from a monolith
Getting ready
How to do it...
Building a monolith
Building microservices from the monolith
How it works...
There's more...
See also
Building decoupled services
Getting ready
How to do it...
How it works...
See also
Building an automated pipeline for microservices
Getting ready
How to do it...
Continuous integration
Continuous delivery
Continuous deployment
There's more...
See also
Determining the state of a microservice by using the MicroProfile Health Check API
Getting ready
How to do it...
How it works...
There's more...
See also
Generating and/or monitoring metrics with the MicroProfile Metrics API
Getting ready
How to do it...
How it works...
There's more...
See also
Exposing API documentation using the MicroProfile OpenAPI
Getting ready
How to do it...
How it works...
There's more...
See also
Chapter 9: Using Multithreading on Enterprise Context
Building asynchronous tasks with returning results
Getting ready
How to do it...
How it works...
See also
Using transactions with asynchronous tasks
Getting ready
How to do it...
How it works...
See also
Checking the status of asynchronous tasks
Getting ready
How to do it...
How it works...
See also
Building managed threads with returning results
Getting ready
How to do it...
How it works...
See also
Scheduling asynchronous tasks with returning results
Getting ready
How to do it...
How it works...
See also
Using injected proxies for asynchronous tasks
Getting ready
How to do it...
How it works...
See also
Chapter 10: Using Event-Driven Programming to Build Reactive Applications
Building reactive applications using asynchronous servlets
Getting ready
How to do it...
How it works...
See also
Building reactive applications using events and observers
Getting ready
How to do it...
How it works...
See also
Building reactive applications using WebSocket
Getting ready
How to do it...
How it works...
See also
Building reactive applications using message-driven beans
Getting ready
How to do it...
How it works...
See also
Building reactive applications using Jakarta RESTful Web Services
Getting ready
How to do it...
How it works...
See also
Building reactive applications using asynchronous session beans
Getting ready
How to do it...
How it works...
See also
Using lambdas and CompletableFuture to improve reactive applications
Getting ready
How to do it...
How it works...
See also
Chapter 11: Rising to the Cloud - Jakarta EE, Containers, and Cloud Computing
Building Jakarta EE containers using Docker
Getting ready
How to do it...
How it works...
See also
Using Oracle Cloud Infrastructure for container orchestration in the cloud
Getting ready
How to do it...
Using Jelastic for container orchestration in the cloud
Getting ready
How to do it...
Using OpenShift for container orchestration in the cloud
Getting ready
How to do it...
Using AWS for container orchestration in the cloud
Getting ready
How to do it...
Chapter 12: Appendix - The Power of Sharing Knowledge
Introduction
Why contributing to the Adopt a JSR program can make you a better professional
Understanding the Adopt a JSR program
Collaborating on the future of Jakarta EE
Setting yourself up for collaboration
Setting aside a specific time for it
Choosing where you'll concentrate your efforts
Do it!
The secret to unsticking your career, your project, and even your life!
Other Books You May Enjoy
Index