You are previewing Your First Cup: An Introduction to the Java EE Platform.
O'Reilly logo
Your First Cup: An Introduction to the Java EE Platform

Book Description

This tutorial introducing beginning Java EE developers to the Java EE platform.

Table of Contents

  1. Copyright
  2. Preface
    1. Who Should Use This Book
    2. Before You Read This Book
    3. Related Books and Projects
    4. Related Third-Party Web Site References
    5. Documentation, Support, and Training
    6. Typographic Conventions
    7. Shell Prompts in Command Examples
  3. 1. Introduction
    1. Goals of This Tutorial
    2. Requirements for This Tutorial
      1. A Checklist
        1. Getting the Tutorial Bundle
        2. Getting the Java EE 5 SDK
        3. Getting NetBeans 5.5
        4. Configuring Your Environment
          1. Building the Examples Using NetBeans 5.5
          2. Building the Examples on the Command-Line Using Ant
  4. 2. The Java Platform, Enterprise Edition
    1. Differences between Java EE and Java SE
      1. The Java Programming Language Platforms
        1. Java SE
        2. Java EE
        3. Java ME
    2. Overview of Enterprise Applications
      1. Tiered Applications
        1. The Client Tier
        2. The Web Tier
          1. Java EE Technologies Used in the Web Tier
        3. The Business Tier
          1. Java EE Technologies Used in the Business Tier
        4. The Enterprise Information Systems Tier
          1. Java EE Technologies Used in the EIS Tier
    3. Java EE Servers
      1. Java EE Containers
        1. The Web Container
        2. The Application Client Container
        3. The EJB Container
  5. 3. Creating Your First Java EE Application
    1. Architecture of the Example Application
      1. Tiers in the Example Application
      2. Java EE Technologies Used in the Example Application
    2. Coding the Example Application
      1. Getting Started
        1. Register the Server with NetBeans
        2. Create a Directory for the Example
        3. Specify Some Settings
      2. Creating the Web Service Endpoint
        1. JAX-WS Endpoints
        2. Creating the Endpoint
          1. Create the Project in NetBeans
          2. Create the DukesAge Class
          3. Annotate the DukesAge Class as a Web Service
          4. Remove the Default Constructor
          5. Add the getDukesAge Method
          6. Resolve the Import Statements
        3. Building and Deploying the Web Service
          1. Building DukesAgeService
          2. Deploying the Web Service Endpoint
      3. Creating the Enterprise Bean
        1. Creating DukesBirthdayBean in NetBeans
          1. Creating the Enterprise Application
          2. Setting the Context Root
          3. Creating the DukesBirthdayBeanEnterprise Bean Class
          4. Modify DukesBirthdayBean.java
          5. Modify DukesBirthdayRemote.java
      4. Creating the Web Client
        1. Setting firstcup-war to support JavaServer Faces Technology
          1. Setting firstcup-war to support JavaServer Faces technology
        2. Creating a Web Service Client for the firstcup-war Web Module
          1. Creating a Web Service Client for the firstcup-war Web Module
        3. Creating a Resource Bundle
          1. Creating a Resource Bundle
        4. Configuring the Resource Bundle in the Configuration File
          1. Configuring the Resource Bundle
        5. Adding a Dependency on the Enterprise Bean Module
          1. Adding a Dependency on the Enterprise Bean Module
        6. Creating the DukesBDay Managed Bean Class
          1. Creating an empty class.
          2. Adding an Enterprise Bean Reference
          3. Adding Properties to the Bean
          4. Generating the Accessor Methods for the Properties
          5. Getting Duke's Current Age
          6. Getting the Age Difference From the DukesBirthdayBean Enterprise Bean
          7. Adding Import Statements
          8. Saving DukesBDay
        7. Configuring the DukesBDay Bean in the Configuration File
          1. Configuring the DukesBDay Managed Bean
        8. Creating the greeting.jsp Page
          1. Creating an Empty JSP Page
          2. Declaring the JavaServer Faces Tag Libraries
          3. Adding the f:view and f:form Tags
          4. Adding Output Labels to Display Read-only Content
          5. Add an Input Component to Accept the User's Birth Date
          6. Registering a Converter on the Input Component
          7. Adding an Error Message to Display if Conversion Fails
          8. Add a Button for Submitting the Form
        9. Defining Page Navigation
          1. Defining Page Navigation Rules
        10. Creating the response.jsp Page
      5. Building, Packaging, Deploying, and Running the firstcup Enterprise Application
        1. Preparing the Deployment Descriptor
        2. Building and Packaging the firstcup Enterprise Application
        3. Deploying the firstcup Enterprise Application
        4. Running the firstcup Application
  6. 4. Building, Packaging, and Deploying and Running the Example Application
    1. Building and Packaging the Example Application
      1. Building and Packaging the Example Application using ant
        1. Building and Packaging firstcup-dukes-age using ant
        2. Deploying firstcup-dukes-age.war using ant
        3. Building and Packaging DukesBirthdayBean and firstcup using ant
    2. Deploying the Example Application
      1. Deploying the Enterprise Bean and Web Client
        1. Deploying firstcup.ear using ant
    3. Running the Web Client
      1. Running the firstcup Application
    4. Undeploying the Application
      1. Undeploying with Ant
      2. Undeploying with asadmin
  7. 5. Next Steps
    1. The Java EE Tutorial
    2. More Information on the Java EE Platform
    3. Java EE Servers
      1. The Sun Java System Application Server
        1. Glassfish
      2. Other Java EE Servers