Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.
This is the Rough Cut version of the printed book.
The Java EE 6 Tutorial: Basic Concepts, 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.Starting with expert guidance on web tier technologies, including JavaServer Faces and Facelets, this book also covers building web services using JAX-WS and JAX-RS, developing business logic with Enterprise JavaBeans components, accessing databases using the Java Persistence API, securing web and enterprise applications, and using Contexts and Dependency Injection for the Java EE platform.
This edition contains extensive new material throughout, including detailed introductions to the latest APIs and platform features, and instructions for using the latest versions of GlassFish Server Open Source Edition and NetBeans IDE. Key platform features covered include
The Java Series…from the Source
Since 1996, when Addison-Wesley published the first edition of The Java Programming Language by Ken Arnold and James Gosling, this series has been the place to go for complete, expert, and definitive information on Java technology. The books in this series provide the detailed information developers need to build effective, robust, and portable applications and are an indispensable resource for anyone using the Java platform.
Preface xxi
Part I: Introduction 1
Chapter 1: 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 22
Java EE 6 APIs in the Java Platform, Standard Edition 6.0 31
GlassFish Server Tools 34
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 44
Tutorial Example Directory Structure 44
Getting the Latest Updates to the Tutorial 44
Debugging Java EE Applications 45
Part II: The Web Tier 47
Chapter 3: Getting Started with Web Applications 49
Web Applications 50
Web Application Lifecycle 51
Web Modules: The hello1 Example 53
Configuring Web Applications: The hello2 Example 62
Further Information about Web Applications 71
Chapter 4: JavaServer Faces Technology 73
What Is a JavaServer Faces Application? 74
JavaServer Faces Technology Benefits 75
Creating a Simple JavaServer Faces Application 77
Further Information about JavaServer Faces Technology 81
Chapter 5: Introduction to Facelets 83
What Is Facelets? 83
Developing a Simple Facelets Application 85
Templating 91
Composite Components 94
Resources 96
Chapter 6: Expression Language 99
Overview of the EL 99
