This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
MOBI The eBook format compatible with the Amazon Kindle and Amazon Kindle applications.
PDF The popular standard, used most often with the free Adobe® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
The Java EE 6 Tutorial: Advanced Topics, Fourth Edition, is a task-oriented, example-driven guide to developing enterprise applications for the Java Platform, Enterprise Edition 6 (Java EE 6). Written by members of the Java EE 6 documentation team at Oracle, this book provides new and intermediate Java programmers with a deep understanding of the platform.
This guide–which builds on the concepts introduced in The Java EE 6 Tutorial: Basic Concepts, Fourth Edition–contains advanced material, including detailed introductions to more complex platform features and instructions for using the latest version of the NetBeans IDE and the GlassFish Server, Open Source Edition.
This book introduces the Java Message Service (JMS) API and Java EE Interceptors. It also describes advanced features of JavaServer Faces, Servlets, JAX-RS, Enterprise JavaBeans components, the Java Persistence API, Contexts and Dependency Injection for the Java EE Platform, web and enterprise application security, and Bean Validation. The book culminates with three new case studies that illustrate the use of multiple Java EE 6 APIs.
Download the sample pages (includes Chapter 3 and Index)
Part I: Introduction 1
Chapter1: Overview 3
Java EE 6 Platform Highlights 4
Java EE Application Model 5
Distributed Multitiered Applications 6
Java EE Containers 13
Web Services Support 15
Java EE Application Assembly and Deployment 17
Packaging Applications 17
Development Roles 19
Java EE 6 APIs 21
Java EE 6 APIs in the Java Platform, Standard Edition 6 and 7 32
GlassFish Server Tools 35
Chapter 2: Using the Tutorial Examples 37
Required Software 37
Starting and Stopping the GlassFish Server 41
Starting the Administration Console 42
Starting and Stopping the Java DB Server 43
Building the Examples 43
Tutorial Example Directory Structure 44
Getting the Latest Updates to the Tutorial 45
Debugging Java EE Applications 45
Part II: The Web Tier 47
Chapter 3: JavaServer Faces Technology: Advanced Concepts 49
The Lifecycle of a JavaServer Faces Application 50
Partial Processing and Partial Rendering 56
The Lifecycle of a Facelets Application 56
User Interface Component Model 57
Chapter 4: Using Ajax with JavaServer Faces Technology 69
Overview of Ajax 70
Using Ajax Functionality with JavaServer Faces Technology 70
Using Ajax with Facelets 71
Sending an Ajax Request 73
Monitoring Events on the Client 75
Handling Errors 76
Receiving an Ajax Response 77
Ajax Request Lifecycle 78
Grouping of Components 78
The ajaxguessnumber Example Application 81
Further Information about Ajax in JavaServer Faces Technology 85
Chapter 5: Composite Components: Advanced Topics and Example 87