▶Book Description
Java EE is an Enterprise Java standard. Applications written to comply with the Java EE specification do not tie developers to a specific vendor; instead they can be deployed to any Java EE compliant application server. With this book, you’ll get all the tools and techniques you need to build robust and scalable applications in Java EE 8. This book covers all the major Java EE 8 APIs including JSF 2.3, Enterprise JavaBeans (EJB) 3.2, Contexts and Dependency Injection (CDI) 2.0, the Java API for WebSockets, JAX-RS 2.1, Servlet 4.0, and more.
The book begins by introducing you to Java EE 8 application development and goes on to cover all the major Java EE 8 APIs. It goes beyond the basics to develop Java EE applications that can be deployed to any Java EE 8 compliant application server.
It also introduces advanced topics such as JSON-P and JSON-B, the Java APIs for JSON processing, and the Java API for JSON binding. These topics dive deep, explaining how the two APIs (the Model API and the Streaming API) are used to process JSON data.
Moving on, we cover additional Java EE APIs, such as the Java API for Websocket and the Java Message Service (JMS), which allows loosely coupled, asynchronous communication. Further on, you’ll discover ways to secure Java EE applications by taking advantage of the new Java EE Security API.
Finally, you’ll learn more about the RESTful web service development using the latest JAX-RS 2.1 specification. You’ll also get to know techniques to develop cloud-ready microservices in Java EE.
▶What You Will Learn
⦁ Develop and deploy Java EE applications
⦁ Embrace the latest additions to the Contexts and Dependency Injection (CDI) specification to develop Java EE applications
⦁ Develop web-based applications by utilizing the latest version of JavaServer Faces, JSF 2.3.
⦁ Understand the steps needed to process JSON data with JSON-P and the new JSON-B Java EE API
⦁ Implement RESTful web services using the new JAX-RS 2.1 API, which also includes support for Server-Sent Events (SSE) and the new reactive client API
▶Key Features
⦁ This book covers all of the major Java EE 8 APIs and includes new additions such as enhanced Security, JSON-B Processing, and more
⦁ Learn additional Java EE APIs, such as the Java API for Websocket and the Java Message Service (JMS)
⦁ Develop applications by taking advantage of the latest versions of CDI, Security, Servlets, and JSF and other Java EE specifications.
▶Who This Book Is For
If you are a Java developer who wants to become proficient with Java EE 8, this book is ideal for you. You are expected to have some experience with Java and to have developed and deployed applications in the past, but you don't need any previous knowledge of Java EE.
▶What this book covers
⦁ Chapter 1, Introduction to Java EE, provides a brief introduction to Java EE, explaining how it is developed as a community effort. It also clears some common misconceptions about Java EE.
⦁ Chapter 2, JavaServer Faces, covers the development of web applications using JSF, including features such as HTML5 friendly markup and Faces Flows.
⦁ Chapter 3, Object Relational Mapping with JPA, discusses how to develop code that interacts with a Relational Database Management System (RDBMS) such as Oracle or MySQL through the Java Persistence API.
⦁ Chapter 4, Enterprise JavaBeans, explains how to develop applications using both session and message-driven beans. Major EJB features such as transaction management, the EJB timer service, and security are covered.
⦁ Chapter 5, Contexts and Dependency Injection, discusses CDI-named beans, dependency injection using CDI and CDI qualifiers, as well as CDI-event functionality.
⦁ Chapter 6, JSON Processing with JSON-B and JSON-P, explains how to generate and parse JavaScript Object Notation (JSON) data using the JSON-P API, and the new JSON-B API.
⦁ Chapter 7, WebSocket, explains how to develop web-based applications featuring full duplex communication between the browser and the server, as opposed to relying on the traditional HTTP request/response cycle.
⦁ Chapter 8, Java Message Service, discusses how to develop messaging applications using the completely revamped JMS 2.0 API.
Chapter 9, Securing Java EE Applications, covers how to secure Java EE applications via the new Java EE 8 security API.
⦁ Chapter 10, RESTful Web Services with JAX-RS, discusses how to develop RESTful web services via the Java API for RESTful web services, as well as how to develop RESTful web service clients via the brand new standard JAX-RS client API. The chapter also covers server-sent events, a new JAX-RS feature introduced in Java EE 8.
⦁ Chapter 11, Microservices Development with Java EE, explains how to develop microservices by leveraging Java EE 8 APIs.
⦁ Chapter 12, Web Services with JAX-WS, explains how to develop SOAP-based web services via the Java API for XML Web Services.
Chapter 13, Servlet Development and Deployment, explains how to develop server-side functionality in Java EE applications via the Servlet API.
⦁ Appendix, Configuring and Deploying to GlassFish, explains how to configure GlassFish so that we can use it to deploy our applications, as well as various methods we can use to deploy our applications to GlassFish.