| |
| |
Preface | |
| |
| |
| |
Introduction | |
| |
| |
| |
Overview | |
| |
| |
Java EE 6 Platform Highlights | |
| |
| |
Java EE Application Model | |
| |
| |
Distributed Multitiered Applications | |
| |
| |
Java EE Containers | |
| |
| |
Web Services Support | |
| |
| |
Java EE Application Assembly and Deployment | |
| |
| |
Packaging Applications | |
| |
| |
Development Roles | |
| |
| |
Java EE 6 APIs | |
| |
| |
Java EE 6 APIs in the Java Platform, Standard Edition 6.0 | |
| |
| |
GlassFish Server Tools | |
| |
| |
| |
Using the Tutorial Examples | |
| |
| |
Required Software | |
| |
| |
Starting and Stopping the GlassFish Server | |
| |
| |
Starting the Administration Console | |
| |
| |
Starting and Stopping the Java DB Server | |
| |
| |
Building the Examples | |
| |
| |
Tutorial Example Directory Structure | |
| |
| |
Getting the Latest Updates to the Tutorial | |
| |
| |
Debugging Java EE Applications | |
| |
| |
| |
The Web Tier | |
| |
| |
| |
Getting Started with Web Applications | |
| |
| |
Web Applications | |
| |
| |
Web Application Lifecycle | |
| |
| |
Web Modules: The hello1 Example | |
| |
| |
Configuring Web Applications: The hello2 Example | |
| |
| |
Further Information about Web Applications | |
| |
| |
| |
JavaServer Faces Technology | |
| |
| |
What Is a JavaServer Faces Application? | |
| |
| |
JavaServer Faces Technology Benefits | |
| |
| |
Creating a Simple JavaServer Faces Application | |
| |
| |
Further Information about JavaServer Faces Technology | |
| |
| |
| |
Introduction to Facelets | |
| |
| |
What Is Facelets? | |
| |
| |
Developing a Simple Facelets Application | |
| |
| |
Templating | |
| |
| |
Composite Components | |
| |
| |
Resources | |
| |
| |
| |
Expression Language | |
| |
| |
Overview of the EL | |
| |
| |
Immediate and Deferred Evaluation Syntax | |
| |
| |
Value and Method Expressions | |
| |
| |
Defining a Tag Attribute Type | |
| |
| |
Literal Expressions | |
| |
| |
Operators | |
| |
| |
Reserved Words | |
| |
| |
Examples of EL Expressions | |
| |
| |
| |
Using JavaServer Faces Technology in Web Pages | |
| |
| |
Setting Up a Page | |
| |
| |
Adding Components to a Page Using HTML Tags | |
| |
| |
Using Core Tags | |
| |
| |
| |
Using Converters, Listeners, and Validators | |
| |
| |
Using the Standard Converters | |
| |
| |
Registering Listeners on Components | |
| |
| |
Using the Standard Validators | |
| |
| |
Referencing a Backing Bean Method | |
| |
| |
| |
Developing with JavaServer Faces Technology | |
| |
| |
Backing Beans | |
| |
| |
Writing Bean Properties | |
| |
| |
Writing Backing Bean Methods | |
| |
| |
Using Bean Validation | |
| |
| |
| |
Java Servlet Technology | |
| |
| |
What Is a Servlet? | |
| |
| |
Servlet Lifecycle | |
| |
| |
Sharing Information | |
| |
| |
Creating and Initializing a Servlet | |
| |
| |
Writing Service Methods | |
| |
| |
Filtering Requests and Responses | |
| |
| |
Invoking Other Web Resources | |
| |
| |
Accessing the Web Context | |
| |
| |
Maintaining Client State | |
| |
| |
Finalizing a Servlet | |
| |
| |
The mood Example Application | |
| |
| |
Further Information about Java Servlet Technology | |
| |
| |
| |
Web Services | |
| |
| |
| |
Introduction to Web Services | |
| |
| |
What Are Web Services? | |
| |
| |
Types of Web Services | |
| |
| |
Deciding Which Type of Web Service to Use | |
| |
| |
| |
Building Web Services with JAX-WS | |
| |
| |
Creating a Simple Web Service and Clients with JAX-WS | |
| |
| |
Types Supported by JAX-WS | |
| |
| |
Web Services Interoperability and JAX-WS | |
| |
| |
Further Information about JAX-WS | |
| |
| |
| |
Building RESTful Web Services with JAX-RS | |
| |
| |
What Are RESTful Web Services? | |
| |
| |
Creating a RESTful Root Resource Class | |
| |
| |
Example Applications for JAX-RS | |
| |
| |
Further Information about JAX-RS | |
| |
| |
| |
Enterprise Beans | |
| |
| |
| |
Enterprise Beans | |
| |
| |
What Is an Enterprise Bean? | |
| |
| |
What Is a Session Bean? | |
| |
| |
What Is a Message-Driven Bean? | |
| |
| |
Accessing Enterprise Beans | |
| |
| |
The Contents of an Enterprise Bean | |
| |
| |
Naming Conventions for Enterprise Beans | |
| |
| |
The Lifecycles of Enterprise Beans | |
| |
| |
Further Information about Enterprise Beans | |
| |
| |
| |
Getting Started with Enterprise Beans | |
| |
| |
Creating the Enterprise Bean | |
| |
| |
Modifying the Java EE Application | |
| |
| |
| |
Running the Enterprise Bean Examples | |
| |
| |
The cart Example | |
| |
| |
A Singleton Session Bean Example: counter | |
| |
| |
A Web Service Example: helloservice | |
| |
| |
Using the Timer Service | |
| |
| |
Handling Exceptions | |
| |
| |
| |
Contexts and Dependency Injection for the Java EE Platform | |
| |
| |
| |
Introduction to Contexts and Dependency Injection for the Java EE Platform | |
| |
| |
Overview of CDI | |
| |
| |
About Beans | |
| |
| |
About Managed Beans | |
| |
| |
Beans as Injectable Objects | |
| |
| |
Using Qualifiers | |
| |
| |
Injecting Beans | |
| |
| |
Using Scopes | |
| |
| |
Giving Beans EL Names | |
| |
| |
Adding Setter and Getter Methods | |
| |
| |
Using a Managed Bean in a Facelets Page | |
| |
| |
Injecting Objects by Using Producer Methods | |
| |
| |
Configuring a CDI Application | |
| |
| |
Further Information about CDI | |
| |
| |
| |
Running the Basic Contexts and Dependency Injection Examples | |
| |
| |
The simplegreeting CDI Example | |
| |
| |
The guessnumber CDI Example | |
| |
| |
| |
Persistence | |
| |
| |
| |
Introduction to the Java Persistence API | |
| |
| |
Entities | |
| |
| |
Entity Inheritance | |
| |
| |
Managing Entities | |
| |
| |
Querying Entities | |
| |
| |
Further Information about Persistence | |
| |
| |
| |
Running the Persistence Examples | |
| |
| |
The order Application | |
| |
| |
The roster Application | |
| |
| |
The address-book Application | |
| |
| |
| |
The Java Persistence Query Language | |
| |
| |
Query Language Terminology | |
| |
| |
Creating Queries Using the Java Persistence Query Language | |
| |
| |
Simplified Query Language Syntax | |
| |
| |
Example Queries | |
| |
| |
Full Query Language Syntax | |
| |
| |
| |
Using the Criteria API to Create Queries | |
| |
| |
Overview of the Criteria and Metamodel APIs | |
| |
| |
Using the Metamodel API to Model Entity Classes | |
| |
| |
Using the Criteria API and Metamodel API to Create Basic Typesafe Queries | |
| |
| |
| |
Security | |
| |
| |
| |
Introduction to Security in the Java EE Platform | |
| |
| |
Overview of Java EE Security | |
| |
| |
Security Mechanisms | |
| |
| |
Securing Containers | |
| |
| |
Securing the GlassFish Server | |
| |
| |
Working with Realms, Users, Groups, and Roles | |
| |
| |
Establishing a Secure Connection Using SSL | |
| |
| |
Further Information about Security | |
| |
| |
| |
Getting Started Securing Web Applications | |
| |
| |
Overview of Web Application Security | |
| |
| |
Securing Web Applications | |
| |
| |
Using Programmatic Security with Web Applications | |
| |
| |
Examples: Securing Web Applications | |
| |
| |
| |
Getting Started Securing Enterprise Applications | |
| |
| |
Securing Enterprise Beans | |
| |
| |
Examples: Securing Enterprise Beans | |
| |
| |
Securing Application Clients | |
| |
| |
Securing Enterprise Information Systems Applications | |
| |
| |
| |
Java EE Supporting Technologies | |
| |
| |
| |
Introduction to Java EE Supporting Technologies | |
| |
| |
Transactions | |
| |
| |
Resources | |
| |
| |
| |
Transactions | |
| |
| |
What Is a Transaction? | |
| |
| |
Container-Managed Transactions | |
| |
| |
Bean-Managed Transactions | |
| |
| |
Transaction Timeouts | |
| |
| |
Updating Multiple Databases | |
| |
| |
Transactions in Web Components | |
| |
| |
Further Information about Transactions | |
| |
| |
| |
Resource Connections | |
| |
| |
Resources and JNDI Naming | |
| |
| |
DataSource Objects and Connection Pools | |
| |
| |
Resource Injection | |
| |
| |
Resource Adapters and Contracts | |
| |
| |
Metadata Annotations | |
| |
| |
Common Client Interface | |
| |
| |
Further Information about Resources | |
| |
| |
Index | |