Java EE 8 Cookbook

A practical guide for building effective enterprise solutions with Java EE 8
Preview in Mapt

Java EE 8 Cookbook

Elder Moraes
New Release!

A practical guide for building effective enterprise solutions with Java EE 8
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $39.99
Save 74%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Java EE 8 Cookbook Book Cover
Java EE 8 Cookbook
$ 39.99
$ 10.00
Java EE 8 Microservices Book Cover
Java EE 8 Microservices
$ 39.99
$ 10.00
Buy 2 for $20.00
Save $59.98
Add to Cart

Book Details

ISBN 139781788293037
Paperback382 pages

Book Description

Java EE is a collection of technologies and APIs to support Enterprise Application development. The choice of what to use and when can be dauntingly complex for any developer. This book will help you master this. Packed with easy to follow recipes, this is your guide to becoming productive with Java EE 8.

You will begin by seeing the latest features of Java EE 8, including major Java EE 8 APIs and specifications such as JSF 2.3, and CDI 2.0, and what they mean for you.

You will use the new features of Java EE 8 to implement web-based services for your client applications. You will then learn to process the Model and Streaming APIs using JSON-P and JSON-B and will learn to use the Java Lambdas support offered in JSON-P. There are more recipes to fine-tune your RESTful development, and you will learn about the Reactive enhancements offered by the JAX-RS 2.1 specification.

Later on, you will learn about the role of multithreading in your enterprise applications and how to integrate them for transaction handling. This is followed by implementing microservices with Java EE and the advancements made by Java EE for cloud computing.

The final set of recipes shows you how take advantage of the latest security features and authenticate your enterprise application.

At the end of the book, the Appendix shows you how knowledge sharing can change your career and your life.

Table of Contents

Chapter 1: New Features and Improvements
Running your first Bean Validation 2.0 code
Running your first CDI 2.0 code
Running your first JAX-RS 2.1 code
Running your first JSF 2.3 code 
Running your first JSON-P 1.1 code 
Running your first JSON-B code 
Running your first Servlet 4.0 code 
Running your first Security API code 
Running your first MVC 1.0 code 
Chapter 2: Server-Side Development
Using CDI to inject context and dependency
Using Bean Validation for data validation
Using servlet for request and response management
Using Server Push to make objects available beforehand
Using EJB and JTA for transaction management
Using EJB to deal with concurrency
Using JPA for smart data persistence
Using EJB and JPA for data caching
Using batch processing
Chapter 3: Building Powerful Services with JSON and RESTful Features
Building server-side events with JAX-RS
Improving service's capabilities with JAX-RS and CDI
Easing data and objects representation with JSON-B
Parsing, generating, transforming, and querying on JSON objects using JSON-P
Chapter 4: Web- and Client-Server Communication
Using servlets for request and response management
Building UI with template's features using JSF
Improving the response performance with Server Push
Chapter 5: Security of Enterprise Architecture
Introduction
Domain protection with authentication
Granting rights through authorization
Protecting data confidentiality and integrity with SSL/TLS
Using declarative security
Using programmatic security
Chapter 6: Reducing the Coding Effort by Relying on Standards
Introduction
Preparing your application to use a connection pool
Using messaging services for asynchronous communication
Understanding a servlet's life cycle
Transaction management
Chapter 7: Deploying and Managing Applications on Major Java EE Servers
Introduction
Apache TomEE usage
GlassFish usage
WildFly usage
Chapter 8: Building Lightweight Solutions Using Microservices
Introduction
Building microservices from a monolith
Building decoupled services
Building an automated pipeline for microservices
Chapter 9: Using Multithreading on Enterprise Context
Introduction
Building asynchronous tasks with returning results
Using transactions with asynchronous tasks
Checking the status of asynchronous tasks
Building managed threads with returning results
Scheduling asynchronous tasks with returning results
Using injected proxies for asynchronous tasks
Chapter 10: Using Event-Driven Programming to Build Reactive Applications
Introduction
Building reactive applications using asynchronous servlets
Building reactive applications using events and observers
Building reactive applications using websockets
Building reactive applications using message-driven beans
Building reactive applications using JAX-RS
Building reactive applications using asynchronous session beans
Using lambdas and CompletableFuture to improve reactive applications
Chapter 11: Rising to the Cloud – Java EE, Containers, and Cloud Computing
Introduction
Building Java EE containers using Docker
Using Oracle Cloud for container orchestration in the cloud
Using Jelastic for container orchestration in the cloud
Using OpenShift for container orchestration in the cloud
Using AWS for container orchestration in the cloud
Chapter 12: Appendix: The Power of Sharing Knowledge
Introduction
Why contributing to the Adopt a JSR program can make you a better professional
The secret to unstucking your project, your career... even your life!

What You Will Learn

  • Actionable information on the new features of Java EE 8
  • Using the most important APIs with real and working code
  • Building server side applications, web services, and web applications
  • Deploying and managing your application using the most important Java EE servers
  • Building and deploying microservices using Java EE 8
  • Building Reactive application by joining Java EE APIs and core Java features
  • Moving your application to the cloud using containers
  • Practical ways to improve your projects and career through community involvement

Authors

Table of Contents

Chapter 1: New Features and Improvements
Running your first Bean Validation 2.0 code
Running your first CDI 2.0 code
Running your first JAX-RS 2.1 code
Running your first JSF 2.3 code 
Running your first JSON-P 1.1 code 
Running your first JSON-B code 
Running your first Servlet 4.0 code 
Running your first Security API code 
Running your first MVC 1.0 code 
Chapter 2: Server-Side Development
Using CDI to inject context and dependency
Using Bean Validation for data validation
Using servlet for request and response management
Using Server Push to make objects available beforehand
Using EJB and JTA for transaction management
Using EJB to deal with concurrency
Using JPA for smart data persistence
Using EJB and JPA for data caching
Using batch processing
Chapter 3: Building Powerful Services with JSON and RESTful Features
Building server-side events with JAX-RS
Improving service's capabilities with JAX-RS and CDI
Easing data and objects representation with JSON-B
Parsing, generating, transforming, and querying on JSON objects using JSON-P
Chapter 4: Web- and Client-Server Communication
Using servlets for request and response management
Building UI with template's features using JSF
Improving the response performance with Server Push
Chapter 5: Security of Enterprise Architecture
Introduction
Domain protection with authentication
Granting rights through authorization
Protecting data confidentiality and integrity with SSL/TLS
Using declarative security
Using programmatic security
Chapter 6: Reducing the Coding Effort by Relying on Standards
Introduction
Preparing your application to use a connection pool
Using messaging services for asynchronous communication
Understanding a servlet's life cycle
Transaction management
Chapter 7: Deploying and Managing Applications on Major Java EE Servers
Introduction
Apache TomEE usage
GlassFish usage
WildFly usage
Chapter 8: Building Lightweight Solutions Using Microservices
Introduction
Building microservices from a monolith
Building decoupled services
Building an automated pipeline for microservices
Chapter 9: Using Multithreading on Enterprise Context
Introduction
Building asynchronous tasks with returning results
Using transactions with asynchronous tasks
Checking the status of asynchronous tasks
Building managed threads with returning results
Scheduling asynchronous tasks with returning results
Using injected proxies for asynchronous tasks
Chapter 10: Using Event-Driven Programming to Build Reactive Applications
Introduction
Building reactive applications using asynchronous servlets
Building reactive applications using events and observers
Building reactive applications using websockets
Building reactive applications using message-driven beans
Building reactive applications using JAX-RS
Building reactive applications using asynchronous session beans
Using lambdas and CompletableFuture to improve reactive applications
Chapter 11: Rising to the Cloud – Java EE, Containers, and Cloud Computing
Introduction
Building Java EE containers using Docker
Using Oracle Cloud for container orchestration in the cloud
Using Jelastic for container orchestration in the cloud
Using OpenShift for container orchestration in the cloud
Using AWS for container orchestration in the cloud
Chapter 12: Appendix: The Power of Sharing Knowledge
Introduction
Why contributing to the Adopt a JSR program can make you a better professional
The secret to unstucking your project, your career... even your life!

Book Details

ISBN 139781788293037
Paperback382 pages
Read More

Read More Reviews

Recommended for You

Java EE 8 Microservices Book Cover
Java EE 8 Microservices
$ 39.99
$ 10.00
Java EE 8 High Performance Book Cover
Java EE 8 High Performance
$ 39.99
$ 10.00
Java EE 8 Application Development Book Cover
Java EE 8 Application Development
$ 39.99
$ 10.00
Architecting Modern Java EE Applications Book Cover
Architecting Modern Java EE Applications
$ 39.99
$ 10.00
Developing Middleware in Java EE 8 Book Cover
Developing Middleware in Java EE 8
$ 39.99
$ 10.00
Microservice Patterns and Best Practices Book Cover
Microservice Patterns and Best Practices
$ 35.99
$ 10.00