Document Information

Preface

1.  Introduction

2.  The Java Platform, Enterprise Edition

Architecture of the Example Application

Tiers in the Example Application

Java EE Technologies Used in the Example Application

Coding the Example Application

Getting Started

Register the Server with NetBeans IDE

Create a Directory for the Example

Specify Some Settings

Creating the Web Service Endpoint

JAX-WS Endpoints

Creating the Endpoint

Building and Deploying the Web Service

Creating the Enterprise Bean

Creating DukesBirthdayBean in NetBeans IDE

Creating the Web Client

Setting firstcup-war to Support JavaServer Faces Technology

Creating a Web Service Client for the firstcup-war Web Module

Creating a Resource Bundle

Configuring the Resource Bundle in the Configuration File

Adding a Dependency on the Enterprise Bean Module

Creating the DukesBDay Managed Bean Class

Configuring the DukesBDay Bean in the Configuration File

Creating the greeting.jsp Page

Creating an Empty JSP Page

Declaring the JavaServer Faces Tag Libraries

Adding the f:view and f:form Tags

Adding Output Labels to Display Read-only Content

Adding an Input Component to Accept the User's Birth Date

Registering a Converter on the Input Component

Adding an Error Message to Display if Conversion Fails

Adding a Button for Submitting the Form

Defining Page Navigation

Creating the response.jsp Page

Building, Packaging, Deploying, and Running the firstcup Enterprise Application

Preparing the Deployment Descriptor

Building and Packaging the firstcup Enterprise Application

Deploying the firstcup Enterprise Application

Running the firstcup Application

4.  Building, Packaging, and Deploying and Running the Example Application

5.  Next Steps

 

Chapter 3

Creating Your First Java EE Application

This chapter gives an overview of the example application and step-by-step instructions on coding the example application.