Documentation Home
> Your First Cup: An Introduction to the Java EE Platform
Your First Cup: An Introduction to the Java EE Platform
Book Information
Preface
Chapter 1 Introduction
Goals of This Tutorial
Requirements for This Tutorial
A Checklist
Getting the Java EE 6 SDK
Getting NetBeans IDE
Configuring Your Environment
Adding GlassFish Server as a Server in NetBeans IDE
Getting the Latest Updates to the Tutorial
Updating the Tutorial Through the Update Center
Chapter 2 Understanding Java Platform, Enterprise Edition
Differences between Java EE and Java SE
The Java Programming Language Platforms
Java SE
Java EE
Java ME
Java FX
Overview of Enterprise Applications
Tiered Applications
The Client Tier
The Web Tier
Java EE Technologies Used in the Web Tier
The Business Tier
Java EE Technologies Used in the Business Tier
The Enterprise Information Systems Tier
Java EE Technologies Used in the EIS Tier
Java EE Servers
Java EE Containers
The Web Container
The Application Client Container
The EJB Container
Chapter 3 Creating Your First Java EE Application
Architecture of the Example Application
Tiers in the Example Application
Java EE Technologies Used in the Example Application
Coding the Example Application
Getting Started
Create a Directory for the Example
Creating the Web Service
JAX-RS Resources
Creating the Endpoint
Create the Project in NetBeans
Create the DukesAgeResource Class
Configure the dukes-age Web Application
Remove the putText Method
Implement the getText Method
Building and Deploying the Web Service
Building and Deploying the Web Service Endpoint
Creating the firstcup Project
Create the Web Application Project
Creating the Java Persistence API Entity
Creating the FirstcupUser Entity Class
Add Properties to the FirstcupUser Entity
Add a Named Query to the FirstcupUser Entity
Add a Business Method to DukesBirthdayBean that Gets the Average Age Difference of firstcup Users
Creating the Enterprise Bean
Creating DukesBirthdayBean in NetBeans IDE
Creating the DukesBirthdayBean Enterprise Bean Class
Modify DukesBirthdayBean.java
Creating the Web Client
Creating a Resource Bundle
Creating a Resource Bundle
Configuring the Resource Bundle in the Configuration File
Creating a Configuration File
Configuring the Resource Bundle
Creating the DukesBDay Managed Bean Class
Creating the Managed Bean Class.
Adding an Enterprise Bean Reference
Adding Properties to the Bean
Getting Duke's Current Age
Getting the Age Difference From the DukesBirthdayBean Enterprise Bean
Creating the Facelets Client
Resource Libraries in firstcup
The inputDate Composite Component
Creating the inputDate Composite Component
The Facelets Web Interface
Creating the XHTML Files
Set the Welcome File in the web.xml Deployment Descriptor
Adding Tag Libraries to the XHTML Files
Adding the Form to greeting.xhtml
Adding the Form to response.html
Setting the Navigation for firstcup
Building, Packaging, Deploying, and Running the firstcup Web Application
Building and Packaging the firstcup Web Application
Running the firstcup Application
Chapter 4 Next Steps
The Java EE Tutorial
More Information on the Java EE Platform
Java EE Servers
Oracle GlassFish Server
GlassFish
Other Java EE Servers
© 2010, Oracle Corporation and/or its affiliates