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

 

J

JAAS
Java Authentication and Authorization Service
Java SE Security Mechanisms
Using Login Modules
login modules, Using Login Modules
JACC
Java Authorization Contract for Containers
Securing the GlassFish Server
JAF, JavaBeans Activation Framework
JAR files, Packaging Applications
query language, Identification Variables
JAR signatures, Java SE Security Mechanisms
JASPIC, Java Authentication Service Provider Interface for Containers
Java API for JavaBeans Validation, See Bean Validation
Java API for RESTful Web Services, See JAX-RS
Java API for XML Binding (JAXB), Java Architecture for XML Binding
using with JAX-RS, Using JAX-RS With JAXB
Java API for XML Processing (JAXP), Java API for XML Processing
Java API for XML Web Services, See JAX-WS
Java Authentication and Authorization Service, See JAAS
Java Authentication Service Provider Interface for Containers (JASPIC), Java Authentication Service Provider Interface for Containers
Java Authorization Contract for Containers, See JACC
JavaBeans Activation Framework (JAF), JavaBeans Activation Framework
JavaBeans components, The JavaBeans Component Architecture
Java BluePrints, Tutorial Example Directory Structure
Java Cryptography Extension (JCE), Java SE Security Mechanisms
Java Database Connectivity API, See JDBC API
Java DB, GlassFish Server Tools
starting, Starting and Stopping the Java DB Server
stopping, Starting and Stopping the Java DB Server
Java EE applications, Distributed Multitiered Applications
debugging, Debugging Java EE Applications
deploying, Running the converter Example
iterative development, Modifying the Java EE Application
running on more than one system
An Application Example That Consumes Messages from a Remote Server
An Application Example That Deploys a Message-Driven Bean on Two Servers
tiers, Distributed Multitiered Applications
Java EE clients
Java EE Clients
Application Clients
See also application clients, web clients
Java EE components, Java EE Components
Java EE Connector architecture
Java EE Connector Architecture
The Java EE Connector Architecture and Resource Adapters
Resource Adapters and Contracts
example, The Resource Adapter Example
Java EE modules
Packaging Applications
Packaging Applications
application client modules, Packaging Applications
EJB modules
Packaging Applications
The Contents of an Enterprise Bean
resource adapter modules, Packaging Applications
See also web modules
Java EE platform
APIs, Java EE 6 APIs
JMS and, How Does the JMS API Work with the Java EE Platform?
overview, Java EE 6 Platform Highlights
Java EE security model, Container Services
Java EE servers, Container Types
Java EE transaction model, Container Services
Java Generic Security Services, Java SE Security Mechanisms
Java GSS-API, Java SE Security Mechanisms
JavaMail API, JavaMail API
example, The Resource Adapter Example
Java Message Service (JMS) API, See JMS
Java Naming and Directory Interface API, Java Naming and Directory Interface API
See also JNDI
Java Persistence API
Java Persistence API
Introduction to the Java Persistence API
See also persistence
Java Persistence API query language, See query language
Java Persistence Criteria API, See Criteria API
Java Secure Sockets Extension (JSSE), Java SE Security Mechanisms
JavaServer Faces application development, Creating a Simple JavaServer Faces Application
bean property, UIInput and UIOutput Properties
Bean Validation, Using Bean Validation
managed beans, Managed Beans in JavaServer Faces Technology
web pages, Using JavaServer Faces Technology in Web Pages
JavaServer Faces applications
configuring
See configuring JavaServer Faces applications
HTML tags, Adding Components to a Page Using HTML Tags
queueing messages, Writing a Method to Perform Validation
JavaServer Faces core tag library
Setting Up a Page
Using Core Tags
actionListener tag
Using Core Tags
Registering an Action Listener on a Component
attribute tag, Using Core Tags
convertDateTime tag
Using Core Tags
Using DateTimeConverter
convertDateTime tag attributes, Using DateTimeConverter
converterId attribute, Converting a Component’s Value
converter tag
Using Core Tags
Converting a Component’s Value
convertNumber tag
Using Core Tags
Converting a Component’s Value
Using NumberConverter
convertNumber tag attributes, Using NumberConverter
facet tag
Using Data-Bound Table Components
Using Core Tags
f:actionListener tag, When to Use a Custom Component
f:ajax tag, Using the f:ajax Tag
f:converter tag, Using a Custom Converter
f:validator tag
Validation Model
Creating and Using a Custom Validator
custom validator tags, Specifying a Custom Tag
loadBundle tag, Using Core Tags
metadata tag
Using View Parameters to Configure Bookmarkable URLs
Using Core Tags
param tag
Displaying a Formatted Message with the h:outputFormat Tag
Using Core Tags
selectItems tag
Displaying a Menu Using the h:selectOneMenu Tag
Displaying Components for Selecting Multiple Values
Using the f:selectItem and f:selectItems Tags
Using the f:selectItems Tag
Using Core Tags
selectItem tag
Displaying a Menu Using the h:selectOneMenu Tag
Displaying Components for Selecting Multiple Values
Using the f:selectItem and f:selectItems Tags
Using the f:selectItem Tag
Using Core Tags
type attribute, Registering a Value-Change Listener on a Component
validateDoubleRange tag
Using Core Tags
Using the Standard Validators
validateLength tag
Using Core Tags
Using the Standard Validators
validateLongRange tag
Using Core Tags
Using the Standard Validators
Using LongRangeValidator
validator tag, Using Core Tags
valueChangeListener tag
Using Core Tags
Registering a Value-Change Listener on a Component
viewparam tag, Using View Parameters to Configure Bookmarkable URLs
JavaServer Faces standard HTML render kit library
Component Rendering Model
Registering a Custom Renderer with a Render Kit
html_basic TLD, Defining the Custom Component Tag in a Tag Library Descriptor
JavaServer Faces standard HTML tag library
See also component tags
JavaServer Faces standard UI components
User Interface Component Classes
Creating Custom UI Components and Other Custom Objects
UIComponent component, Creating a Custom Converter
JavaServer Faces tag libraries, What Is Facelets?
JavaServer Faces core tag library
Setting Up a Page
Using Core Tags
JavaServer Faces HTML render kit tag library, Setting Up a Page
namespace directives, Setting Up a Page
JavaServer Faces technology
Web Components
JavaServer Faces Technology
JavaServer Faces Technology
advantages, JavaServer Faces Technology Benefits
bookmarkable URLs
Creating Bookmarkable URLs with the h:button and h:link Tags
Using View Parameters to Configure Bookmarkable URLs
See also component rendering model, component tags, conversion model, event and listener model, FacesContext class, JavaServer Faces standard UI components, lifecycle of a JavaServer Faces application, UI component behavioral interfaces, UI component classes, validation model
See also component tags
composite components, Composite Components: Advanced Topics and Example
See also Facelets
FacesServlet class, Identifying the Servlet for Lifecycle Processing
features, What Is a JavaServer Faces Application?
partial processing, Partial Processing and Partial Rendering
partial rendering, Partial Processing and Partial Rendering
partial state saving
Creating Custom Component Classes
Saving and Restoring State
using Ajax with, Using Ajax with JavaServer Faces Technology
Validator interface, Writing a Method to Perform Validation
JavaServer Pages Standard Tag Library, See JSTL
Java Servlet technology
Java Servlet Technology
Java Servlet Technology
See also servlets
Java Transaction API
Java Transaction API
JTA Transactions
javax.servlet.http package, What Is a Servlet?
javax.servlet package, What Is a Servlet?
JAXB, Java Architecture for XML Binding
examples, The customer Example Application
generating Java entity classes from XML schema, Starting from an Existing XML Schema Definition
generating XML schema from Java classes, Using Java Objects to Model Your Data
Java entity classes, Using Java Objects to Model Your Data
returning Java entity classes in JAX-RS resources, Using Java Objects to Model Your Data
schema generator, Using Java Objects to Model Your Data
using with JAX-RS, Using JAX-RS With JAXB
with JSON, Using JSON with JAX-RS and JAXB
xjc schema compiler tool, Starting from an Existing XML Schema Definition
JAXBElement, in JAX-RS resource methods, Starting from an Existing XML Schema Definition
JAXP, Java API for XML Processing
JAX-RS
Java API for RESTful Web Services
Building RESTful Web Services with JAX-RS
accessing XML documents, Using JAX-RS With JAXB
advanced features, JAX-RS: Advanced Topics and Example
annotations, Annotations for Field and Bean Properties of Resource Classes
application overview, Overview of a JAX-RS Application
conditional HTTP requests, Conditional HTTP Requests
converting CDI managed beans to root resource classes, Integrating JAX-RS with EJB Technology and CDI
converting enterprise beans to root resource classes, Integrating JAX-RS with EJB Technology and CDI
entity providers, Using Entity Providers to Map HTTP Response and Request Entity Bodies
examples
Example Applications for JAX-RS
The customer Example Application
extracting Java type of request or response, Extracting the Java Type of a Request or Response
form parameters, Extracting Form Data
integrating with CDI, Integrating JAX-RS with EJB Technology and CDI
integrating with EJB technology, Integrating JAX-RS with EJB Technology and CDI
introduction, RESTful Web Services
path parameters, Extracting Path Parameters
path templates, The @Path Annotation and URI Path Templates
query parameters, Extracting Query Parameters
reference implementation, Building RESTful Web Services with JAX-RS
request headers, Annotations for Field and Bean Properties of Resource Classes
request method designators
Creating a RESTful Root Resource Class
The Request Method Designator Annotations
resource classes, Creating a RESTful Root Resource Class
resource class methods, Subresources and Runtime Resource Resolution
resource methods, Creating a RESTful Root Resource Class
runtime content negotiation, Runtime Content Negotiation
runtime resource resolution, Subresources and Runtime Resource Resolution
static content negotiation, Runtime Content Negotiation
subresource locators
Subresources and Runtime Resource Resolution
Subresource Locators
subresource methods
Subresources and Runtime Resource Resolution
Subresource Methods
subresources, Subresources and Runtime Resource Resolution
URI, Annotations for Field and Bean Properties of Resource Classes
using JSON representations, Using JSON with JAX-RS and JAXB
using with JAXB, Using JAX-RS With JAXB
JAX-WS, Java API for XML Web Services
defined, Building Web Services with JAX-WS
examples, Creating a Simple Web Service and Clients with JAX-WS
introduction, “Big” Web Services
service endpoint interfaces, Creating a Simple Web Service and Clients with JAX-WS
specification, Further Information about JAX-WS
JCE, Java SE Security Mechanisms
JDBC API
Java Database Connectivity API
Java Database Connectivity Software
DataSource Objects and Connection Pools
JMS, Java Message Service API
achieving reliability and performance, Creating Robust JMS Applications
administered objects, JMS Administered Objects
application client examples, Writing Simple JMS Applications
architecture, JMS API Architecture
basic concepts, Basic JMS API Concepts
definition, What Is the JMS API?
examples
A Message-Driven Bean Example
Java Message Service Examples
introduction, Overview of the JMS API
Java EE platform
How Does the JMS API Work with the Java EE Platform?
Using the JMS API in Java EE Applications
messaging domains, Messaging Domains
programming model, The JMS API Programming Model
JMSCorrelationID message header field, Message Headers
JMSDeliveryMode message header field, Message Headers
JMSDestination message header field, Message Headers
JMSException class, JMS Exception Handling
JMSExpiration message header field, Message Headers
JMSMessageID message header field, Message Headers
JMSPriority message header field, Message Headers
JMSRedelivered message header field, Message Headers
JMSReplyTo message header field, Message Headers
JMSTimestamp message header field, Message Headers
JMSType message header field, Message Headers
JNDI
Java Naming and Directory Interface API
Resources and JNDI Naming
data source naming subcontexts, Java Naming and Directory Interface API
enterprise bean lookup, Using Enterprise Beans in Clients
enterprise bean naming subcontexts, Java Naming and Directory Interface API
environment naming contexts, Java Naming and Directory Interface API
jms naming subcontext, JMS Connection Factories
namespace for JMS administered objects, JMS Administered Objects
naming contexts, Java Naming and Directory Interface API
naming environments, Java Naming and Directory Interface API
naming subcontexts, Java Naming and Directory Interface API
jsf.js file, Loading JavaScript as a Resource
JSON, with JAXB and JAX-RS, Using JSON with JAX-RS and JAXB
JSR 299, See Contexts and Dependency Injection (CDI) for the Java EE platform
JSR 311, See JAX-RS
JSSE, Java SE Security Mechanisms
JSTL, JavaServer Pages Standard Tag Library
JTA
Java Transaction API
JTA Transactions
JTS API, JTA Transactions
JUnit, The standalone Example Application