Book Image

Jakarta EE Cookbook - Second Edition

By : Elder Moraes
Book Image

Jakarta EE Cookbook - Second Edition

By: Elder Moraes

Overview of this book

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.
Table of Contents (14 chapters)

Building Jakarta EE containers using Docker

Since day one, Jakarta EE has been based on containers. If you're in any doubt about this, just have a look at the following diagram:

Java EE architecture: https://docs.oracle.com/javaee/6/tutorial/doc/bnacj.html

It belongs to Oracle's former official documentation for Java EE 6 and has been much the same architecture since the times of Sun. It's here to show that this is not new at all.

As you can see, there are different containers a web container, an Enterprise Java Beans (EJB) container, and an application client container. In other words, the applications developed under those containers will rely on many features and services provided by them.

When we take the Jakarta EE application server and put it inside a Docker container, we are doing the same thing it is relying on some of the features and...