Document Information

Preface

Part I Introduction

1.  Overview

2.  Using the Tutorial Examples

Required Software

JavaTM Platform, Standard Edition

Java EE 6 Software Development Kit (SDK)

SDK Installation Tips

Apache Ant

To Obtain Apache Ant

Java EE 6 Tutorial Component

To Obtain the Tutorial Component

NetBeans IDE

To Add Enterprise Server as a Server in NetBeans IDE

Starting and Stopping the Enterprise Server

Starting the Administration Console

To Start the Administration Console in NetBeans IDE

Starting and Stopping the Java DB Database Server

Building the Examples

Getting the Latest Updates to the Tutorial

To Update the Tutorial through the Update Center

Debugging Java EE Applications

Using the Server Log

Using a Debugger

Part II The Web Tier

3.  Getting Started with Web Applications

4.  JavaServerTM Faces Technology

5.  Introduction to Facelets

6.  Unified Expression Language

7.  Using JavaServerTM Faces Technology in Web Pages

8.  Using Converters, Listeners and Validators

9.  Developing With JavaServerTM Faces Technology

10.  Java Servlet Technology

Part III Web Services

11.  Introduction to Web Services

12.  Building Web Services with JAX-WS

13.  Building RESTful Web Services with JAX-RS and Jersey

Part IV Enterprise Beans

14.  Enterprise Beans

15.  Getting Started with Enterprise Beans

16.  Running the Enterprise Bean Examples

Part V Contexts and Dependency Injection for the JavaTM EE Platform

17.  Introduction to Contexts and Dependency Injection for the JavaTM EE Platform

18.  Running the Basic Contexts and Dependency Injection Examples

Part VI Persistence

19.  Introduction to the Java Persistence API

20.  Running the Persistence Examples

21.  The Java Persistence Query Language

22.  Creating Queries Using the Criteria API

Part VII Security

23.  Introduction to Security in the Java EE Platform

24.  Getting Started Securing Enterprise Applications

25.  Getting Started Securing Web Applications

Part VIII JavaTM EE Supporting Technologies

26.  Introduction to JavaTM EE Supporting Technologies

27.  Transactions

28.  Resource Connections

Index

 

Tutorial Example Directory Structure

To facilitate iterative development and keep application source separate from compiled files, the tutorial examples use the Java BluePrints application directory structure.

Each application module has the following structure:

  • build.xml: Ant build file

  • src/java: Java source files for the module

  • src/conf: configuration files for the module, with the exception of web applications

  • web: web pages, style sheets, tag files, and images

  • web/WEB-INF: configuration files for web applications

  • nbproject: NetBeans project files

Examples that have multiple application modules packaged into an enterprise application archive (or EAR) have submodule directories that use the following naming conventions:

  • example-name-app-client: Application clients

  • example-name-ejb: Enterprise bean JAR files

  • example-name-war: web applications

The Ant build files (build.xml) distributed with the examples contain targets to create a build subdirectory and to copy and compile files into that directory; a dist subdirectory, which holds the packaged module file; and a client-jar directory, which holds the retrieved application client JAR.