DRAFT
Jakarta Enterprise Edition
Audience
Before You Read This Book
Related Books and Projects
Conventions
Goals of This Tutorial
Prerequisite Tasks for Completing This Tutorial
Software Compatibility Notice
Get the Jakarta EE 8 SDK
Install the NetBeans IDE Distribution for Java EE
Add GlassFish Server as a Server in NetBeans IDE
Get the Latest Updates to this Tutorial
Overview of Enterprise Applications
Tiered Applications
The Client Tier
The Web Tier
The Business Tier
The Enterprise Information Systems Tier
Jakarta EE Servers and Containers
The Web Container
The EJB Container
The Application Client Container
Architecture of the Example Applications
Tiers in the Example Applications
Jakarta EE Technologies Used in the Example Applications
Coding the dukes-age Example Application
Getting Started
Install the Maven Archetypes
Creating the Web Service
JAX-RS Resources
Creating the dukes-age Application Using the Maven Archetype
Starting GlassFish Server and the Database Server
Building and Deploying the Web Service Endpoint
The firstcup-war Project
Creating the Web Application Project Using the Archetype
Modifying the Java Persistence API Entity
Edit the Constructor of the FirstcupUser Entity
Add a Named Query to the FirstcupUser Entity
Modifying the Enterprise Bean
Implement a Business Method to DukesBirthdayBean that Gets the Average Age Difference of firstcup-war Users
Implement a Business Method for Calculating the Age Difference Between Duke and the User
Modifying the Web Client
Modify the DukesBDay Managed Bean Class
Call the dukes-age Web Service to Retrieve Duke’s Current Age
Get the Age Difference from the DukesBirthdayBean Enterprise Bean
Creating the Facelets Client
Resource Libraries in firstcup-war
The inputDate Composite Component
Implement the inputDate Composite Component
The Facelets Web Interface
Add the Form to greeting.xhtml
Add the Form to response.html
Building, Packaging, Deploying, and Running the firstcup-war Web Application
Build, Package, and Deploy the firstcup-war Web Application
Run the firstcup-war Application
The Jakarta EE Tutorial
More Information on the Jakarta EE Platform