Document Information

Preface

Part I Introduction

1.  Overview

2.  Using the Tutorial Examples

Part II The Web Tier

3.  Getting Started with Web Applications

4.  JavaServer Faces Technology

5.  Introduction to Facelets

6.  Expression Language

7.  Using JavaServer Faces Technology in Web Pages

8.  Using Converters, Listeners, and Validators

9.  Developing with JavaServer Faces Technology

10.  JavaServer Faces Technology: Advanced Concepts

11.  Using Ajax with JavaServer Faces Technology

12.  Composite Components: Advanced Topics and Example

13.  Creating Custom UI Components and Other Custom Objects

14.  Configuring JavaServer Faces Applications

15.  Java Servlet Technology

16.  Uploading Files with Java Servlet Technology

17.  Internationalizing and Localizing Web Applications

Part III Web Services

18.  Introduction to Web Services

19.  Building Web Services with JAX-WS

20.  Building RESTful Web Services with JAX-RS

21.  JAX-RS: Advanced Topics and Example

Part IV Enterprise Beans

22.  Enterprise Beans

23.  Getting Started with Enterprise Beans

24.  Running the Enterprise Bean Examples

25.  A Message-Driven Bean Example

26.  Using the Embedded Enterprise Bean Container

27.  Using Asynchronous Method Invocation in Session Beans

Part V Contexts and Dependency Injection for the Java EE Platform

28.  Introduction to Contexts and Dependency Injection for the Java EE Platform

29.  Running the Basic Contexts and Dependency Injection Examples

30.  Contexts and Dependency Injection for the Java EE Platform: Advanced Topics

31.  Running the Advanced Contexts and Dependency Injection Examples

Part VI Persistence

32.  Introduction to the Java Persistence API

33.  Running the Persistence Examples

34.  The Java Persistence Query Language

35.  Using the Criteria API to Create Queries

36.  Creating and Using String-Based Criteria Queries

37.  Controlling Concurrent Access to Entity Data with Locking

38.  Using a Second-Level Cache with Java Persistence API Applications

Part VII Security

39.  Introduction to Security in the Java EE Platform

40.  Getting Started Securing Web Applications

41.  Getting Started Securing Enterprise Applications

42.  Java EE Security: Advanced Topics

Part VIII Java EE Supporting Technologies

43.  Introduction to Java EE Supporting Technologies

44.  Transactions

45.  Resources and Resource Adapters

46.  The Resource Adapter Example

47.  Java Message Service Concepts

48.  Java Message Service Examples

49.  Bean Validation: Advanced Topics

50.  Using Java EE Interceptors

Part IX Case Studies

51.  Duke's Bookstore Case Study Example

52.  Duke's Tutoring Case Study Example

53.  Duke's Forest Case Study Example

Index

 

K

L

lifecycle callback events, intercepting, Intercepting Lifecycle Callback Events
lifecycle of a JavaServer Faces application
The Lifecycle of the hello Application
The Lifecycle of a JavaServer Faces Application
action and value-change event processing, Event and Listener Model
Apply Request Values phase
Apply Request Values Phase
Performing Decoding
custom converters
Creating a Custom Converter
Creating a Custom Converter
getRendererType method (Render Response phase), Identifying the Renderer Type
immediate attribute, Understanding the Facelets Page
Invoke Application phase, Invoke Application Phase
performing encoding (Render Response phase), Performing Encoding
Process Validations phase, Process Validations Phase
renderResponse method
Overview of the JavaServer Faces Lifecycle
Apply Request Values Phase
Process Validations Phase
Update Model Values Phase
Render Response phase, Render Response Phase
responseComplete method
Overview of the JavaServer Faces Lifecycle
Process Validations Phase
Update Model Values Phase
Restore View phase, Restore View Phase
saving state, Saving and Restoring State
updateModels method, Update Model Values Phase
Update Model Values phase, Update Model Values Phase
Validator interface, Implementing the Validator Interface
views, Restore View Phase
listener classes, Handling Servlet Lifecycle Events
defining, Defining the Listener Class
listener interfaces, Defining the Listener Class
listeners
HTTP, Securing the GlassFish Server
IIOP, Securing the GlassFish Server
local interfaces, Local Clients
localization, Internationalizing and Localizing Web Applications
Bean Validation, Localizing Validation Messages
local transactions, Using JMS API Local Transactions
log, server, Using the Server Log
login configuration
Specifying Authentication Mechanisms
Specifying an Authentication Mechanism in the Deployment Descriptor
login method, Authenticating Users Programmatically
login modules, Using Login Modules
logout method, Authenticating Users Programmatically

M

managed bean creation facility, Configuring Managed Beans
managed bean declarations, Configuring Model Data
key-class element, Initializing Map Properties
list-entries element, Initializing Properties Using the managed-property Element
managed-bean element
Using the managed-bean Element
Initializing Managed Bean Properties
managed-bean-name element, Using the managed-bean Element
managed-property element, Initializing Properties Using the managed-property Element
map-entries element
Initializing Properties Using the managed-property Element
Initializing Map Properties
map-entry element, Initializing Map Properties
null-value elements, Initializing Properties Using the managed-property Element
value element, Initializing Properties Using the managed-property Element
managed bean methods
attributes
See attributes referencing managed bean methods
referencing
See referencing managed bean methods
writing
See writing managed bean methods
managed bean properties
Converting a Component’s Value
Creating a Managed Bean
Using the EL to Reference Managed Beans
Binding Component Values and Instances to Managed Bean Properties
bound to component instances, Writing Properties Bound to Component Instances
UIData properties, UIData Properties
UIInput and UIOutput properties, UIInput and UIOutput Properties
UISelectBoolean properties, UISelectBoolean Properties
UISelectItem properties, UISelectItem Properties
UISelectItems properties, UISelectItems Properties
UISelectMany properties, UISelectMany Properties
UISelectOne properties, UISelectOne Properties
writing, Writing Bean Properties
managed beans, What Is a JavaServer Faces Application?
composite components, Invoking a Managed Bean
configuring in JavaServer Faces technology, Using Annotations to Configure Managed Beans
conversion model, Conversion Model
custom component alternative, When to Use a Custom Component
defined for CDI, About CDI Managed Beans
developing
Developing the Managed Bean
Developing a Managed Bean
event and listener model, Event and Listener Model
JavaServer Faces technology, Managed Beans in JavaServer Faces Technology
loading JavaScript, Using the @ResourceDependency Annotation in a Bean Class
method binding, Using Text Components
properties
See managed bean properties
See also value binding
Managed Beans specification
Managed Beans
Introduction to Contexts and Dependency Injection for the Java EE Platform
MapMessage interface, Message Bodies
matrix parameters, JAX-RS, Extracting Request Parameters
message acknowledgment, Controlling Message Acknowledgment
bean-managed transactions, Managing Distributed Transactions
message-driven beans, Using Message-Driven Beans to Receive Messages Asynchronously
message bodies, Message Bodies
MessageBodyReader interface, Using Entity Providers to Map HTTP Response and Request Entity Bodies
MessageBodyWriter interface, Using Entity Providers to Map HTTP Response and Request Entity Bodies
MessageConsumer interface, JMS Message Consumers
message consumers, JMS Message Consumers
message consumption, Message Consumption
asynchronous
Message Consumption
A Simple Example of Asynchronous Message Consumption
synchronous
Message Consumption
A Simple Example of Synchronous Message Receives
message-driven beans
Enterprise JavaBeans Technology
What Is a Message-Driven Bean?
accessing, What Makes Message-Driven Beans Different from Session Beans?
coding
The Message-Driven Bean Class
Coding the Message-Driven Bean: MessageBean.java
Coding the Message-Driven Beans for the clientmdbentity Example
Coding the Message-Driven Bean: ReplyMsgBean.java
examples
A Message-Driven Bean Example
An Application That Uses the JMS API with a Session Bean
An Application That Uses the JMS API with an Entity
An Application Example That Consumes Messages from a Remote Server
An Application Example That Deploys a Message-Driven Bean on Two Servers
garbage collection, The Lifecycle of a Message-Driven Bean
introduction, Using Message-Driven Beans to Receive Messages Asynchronously
onMessage method
What Makes Message-Driven Beans Different from Session Beans?
The onMessage Method
requirements, The Message-Driven Bean Class
transactions
What Makes Message-Driven Beans Different from Session Beans?
Container-Managed Transactions
Bean-Managed Transactions
Bean-Managed Transactions
message headers, Message Headers
message IDs, JMSMessageID message header field, Message Headers
Message interface, Message Bodies
MessageListener interface, JMS Message Listeners
message listeners
What Is a Message-Driven Bean?
JMS Message Listeners
examples
Writing the Clients for the Asynchronous Receive Example
Coding the Application Client: HumanResourceClient.java
Coding the Application Client: MultiAppServerClient.java
MessageProducer interface, JMS Message Producers
message producers, JMS Message Producers
message properties, Message Properties
messages
integrity, Client Authentication
MessageFormat pattern
Displaying a Formatted Message with the h:outputFormat Tag
Using Core Tags
outputFormat tag, Displaying a Formatted Message with the h:outputFormat Tag
parameter substitution tags, Using Core Tags
param tag
Displaying a Formatted Message with the h:outputFormat Tag
Using Core Tags
queueing messages
Writing a Method to Perform Validation
Registering Application Messages
securing, Message-Layer Security
using the FacesMessage class to create a message, Using FacesMessage to Create a Message
message security, Overview of Web Application Security
message selectors, JMS Message Selectors
messages, JMS
body formats, Message Bodies
browsing, JMS Queue Browsers
definition, JMS API Architecture
delivery modes, Specifying Message Persistence
expiration, Allowing Messages to Expire
headers, Message Headers
introduction, JMS Messages
persistence, Specifying Message Persistence
priority levels, Setting Message Priority Levels
properties, Message Properties
messaging, definition, What Is Messaging?
messaging domains, Messaging Domains
common interfaces, Programming with the Common Interfaces
point-to-point, Point-to-Point Messaging Domain
publish/subscribe, Publish/Subscribe Messaging Domain
metadata annotations
resource adapters, Metadata Annotations
security, Using Annotations to Specify Security Information
Metamodel API, Overview of the Criteria and Metamodel APIs
using
Metamodel Classes in the roster Application
Using the Metamodel API to Model Entity Classes
method binding
method-binding expressions
Navigation Model
Configuring Navigation Rules
method expressions, Enabling Component Properties to Accept Expressions
method expressions
Referencing a Managed Bean Method
Event and Listener Model
method invocations, intercepting, Intercepting Method Invocations
method permissions, Securing an Enterprise Bean Using Declarative Security
annotations, Specifying Authorized Users by Declaring Security Roles
mutual authentication
Mutual Authentication
Enabling Mutual Authentication over SSL