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 6.7 IDE
Configuring Your Environment
Enabling Enterprise Server v3 Support in NetBeans 6.7 IDE
Adding Enterprise Server v3 as a Server in NetBeans 6.7 IDE
Installing the Facelets NetBeans 6.7 IDE Plugins
Add JAX-RS Support to the Java EE SDK Web Profile
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
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
Resolve the Import Statements
Building and Deploying the Web Service
Building and Deploying the Web Service Endpoint
Creating the Enterprise Bean
Creating DukesBirthdayBean in NetBeans 6.7 IDE
Create the Web Application Project
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
Modify the faces-config.xml File
Configuring the Resource Bundle
Creating the DukesBDay Managed Bean Class
Creating an empty class.
Annotating the class with @ManagedBean and @SessionScoped.
Adding an Enterprise Bean Reference
Adding Properties to the Bean
Generating the Accessor Methods for the Properties
Getting Duke's Current Age
Getting the Age Difference From the DukesBirthdayBean Enterprise Bean
Creating the Facelets Client
Resource Libraries in firstcup
Modify the web.xml File
Creating the Resource Library
The inputDate Composite Component
Creating the inputDate Composite Component
The Facelets Web Interface
Creating the XHTML Files
Modifying the firstcup Project
Adding Tag Libraries to the XHTML Files
Adding the Form to greeting.xhtml
Adding the Form to response.html
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
Sun GlassFish Enterprise Server v3
GlassFish
Other Java EE Servers
© 2010, Oracle Corporation and/or its affiliates