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.  Java Servlet Technology

5.  JavaServer Pages Technology

6.  JavaServer Pages Documents

7.  JavaServer Pages Standard Tag Library

8.  Custom Tags in JSP Pages

9.  Scripting in JSP Pages

10.  JavaServer Faces Technology

11.  Using JavaServer Faces Technology in JSP Pages

12.  Developing with JavaServer Faces Technology

13.  Creating Custom UI Components

14.  Configuring JavaServer Faces Applications

15.  Internationalizing and Localizing Web Applications

Part III Web Services

16.  Building Web Services with JAX-WS

17.  Binding between XML Schema and Java Classes

18.  Streaming API for XML

19.  SOAP with Attachments API for Java

Part IV Enterprise Beans

20.  Enterprise Beans

21.  Getting Started with Enterprise Beans

22.  Session Bean Examples

23.  A Message-Driven Bean Example

Part V Persistence

24.  Introduction to the Java Persistence API

25.  Persistence in the Web Tier

26.  Persistence in the EJB Tier

27.  The Java Persistence Query Language

Part VI Services

28.  Introduction to Security in the Java EE Platform

29.  Securing Java EE Applications

30.  Securing Web Applications

31.  The Java Message Service API

32.  Java EE Examples Using the JMS API

33.  Transactions

34.  Resource Connections

35.  Connector Architecture

Part VII Case Studies

36.  The Coffee Break Application

37.  The Duke's Bank Application

Part VIII Appendixes

A.  Java Encoding Schemes

B.  About the Authors

Index

 

B

backing bean methods
Referencing a Backing Bean Method
Writing a Method to Handle Navigation
attributes referencing
See attributes referencing backing bean methods
referencing
See referencing backing bean methods
writing
See writing backing bean methods
backing bean properties
Creating a Backing Bean Class
Using the Unified EL to Reference Backing Beans
Converting a Component’s Value
Binding Component Values and Instances to External Data Sources
bound to component instances, Writing Properties Bound to Component Instances
properties for UISelectItems composed of SelectItem instances
UISelectItems Properties
UISelectItems Properties
UIData properties, UIData Properties
UIInput and UIOutput properties, UIInput and UIOutput Properties
UISelectBoolean properties, UISelectBoolean Properties
UISelectItems properties, UISelectItems Properties
UISelectMany properties, UISelectMany Properties
UISelectOne properties, UISelectOne Properties
backing beans, Backing Beans
conversion model, Conversion Model
custom component alternative, When to Use a Custom Component
developing, Developing the Beans
event and listener model, Event and Listener Model
method binding
See method binding
methods
See backing bean methods
properties
See backing bean properties
value binding
See value binding
bean-managed transactions, Managing Distributed Transactions
See transactions, bean-managed
binding runtime framework, Architectural Overview
BLOBs, See persistence, BLOBs
BodyTag interface, Tag Handlers
BodyTagSupport class, Tag Handlers
BufferedReader class, Getting Information from Requests
business interfaces
examples, Coding the Business Interface
locating, Coding the converter Web Client
business logic, Benefits of Enterprise Beans
business methods
Remote Clients
Invoking a Business Method
Coding the converter Web Client
client calls, Business Methods
exceptions, Business Methods
requirements, Business Methods
transactions
Summary of Transaction Attributes
Synchronizing a Session Bean’s Instance Variables
Returning without Committing
Updating Multiple Databases
BytesMessage interface, Message Bodies

C

call method
SAAJ Connections
SOAPConnection Objects
Sending a Message
CallbackHandler interface, Securing Application Clients
capture-schema tool, Tools
CCI, See J2EE Connector architecture, CCI
CDATA events, Reporting CDATA Events
certificate authority, Working with Digital Certificates
Certificate Signing Request
security certificates
digitally-signed, Signing Digital Certificates
certificates, Java SE Security Implementation Mechanisms
client
generating, Creating a Client Certificate for Mutual Authentication
digital
Transport-Layer Security
Working with Digital Certificates
managing, Working with Digital Certificates
signing, Signing Digital Certificates
server, Using a Different Server Certificate with the Application Server
generating, Creating a Server Certificate
using for authentication, Adding Users to the Certificate Realm
character encodings
Character Encoding
Java Encoding Schemes
ISO 8859, Character Encoding
ISO-8859-1, Java Encoding Schemes
US-ASCII, Java Encoding Schemes
UTF-16, Java Encoding Schemes
UTF-8
Character Encoding
Java Encoding Schemes
character sets, Character Sets
IANA registry, Further Information about Character Encoding
Unicode, Character Sets
US-ASCII, Character Sets
classic tags, Programming Tags That Accept Scripting Elements
tag handlers
Custom Tags in JSP Pages
Tag Handlers
defining variables, Tags That Define Variables
how invoked, How Is a Classic Tag Handler Invoked?
life cycle, How Is a Classic Tag Handler Invoked?
methods, Tag Handlers
shared objects, Cooperating Tags
variable availability, Tags That Define Variables
with bodies, Tags with Bodies
CLIENT_ACKNOWLEDGE mode, Controlling Message Acknowledgment
client applications, JMS, Writing Simple JMS Client Applications
packaging
Compiling and Packaging the Clients for the Synchronous Receive Example
Compiling and Packaging the AsynchConsumer Client
running
Running the Clients for the Synchronous Receive Example
Running the Clients for the Asynchronous Receive Example
running on multiple systems, Running JMS Client Programs on Multiple Systems
client certificates, generating, Creating a Client Certificate for Mutual Authentication
client ID, for durable subscriptions, Creating Durable Subscriptions
clients
authenticating
Enabling Mutual Authentication over SSL
HTTPS Client Authentication
securing, Securing Application Clients
CLOBs, See persistence, CLOBs
close method, Sending a Message
Coffee Break, The Coffee Break Application
building, packaging, and deploying, Building, Packaging, Deploying, and Running the Coffee Break Application
JavaBeans components
JAX-WS Coffee Supplier Service
JavaBeans Components
JavaServer Faces server resource configuration, Resource Configuration
JAX-WS client, The RetailPriceList JavaBeans Component
JAX-WS service, JAX-WS Coffee Supplier Service
JSP pages, JSP Pages
removing, Removing the Coffee Break Application
running, Running the Coffee Break Client
SAAJ client
SAAJ Client
The RetailPriceList JavaBeans Component
SAAJ service
SAAJ Coffee Supplier Service
SAAJ Service
server, Coffee Break Server
server interaction, Overview of the Coffee Break Application
setting service port numbers, Setting the Port
shared files, Common Code
web service, JAX-WS Coffee Supplier Service
commit method, Methods Not Allowed in Container-Managed Transactions
commit method (JMS), Using JMS API Local Transactions
commits, See transactions, commits
component binding
Using the Unified EL to Reference Backing Beans
Binding Component Values and Instances to External Data Sources
Binding a Component Instance to a Bean Property
Writing Bean Properties
binding attribute
external data sources, Binding Component Values and Instances to External Data Sources
to a bean property, Binding a Component Instance to a Bean Property
value expressions, Using the Unified EL to Reference Backing Beans
component-managed sign-on
Securing EIS Applications
Component-Managed Sign-On
component rendering model
User Interface Component Model
Component Rendering Model
decode method, Performing Decoding
ActionListener registration, Registering an Action Listener on a Component
apply request values phase, Apply Request Values Phase
conversion model, Creating a Custom Converter
handling events of custom UI components, Handling Events for Custom Components
decoding
When to Use a Custom Renderer
Creating Custom Component Classes
delegated implementation, When to Use a Custom Renderer
direct implementation, When to Use a Custom Renderer
encode method, Creating a Custom Converter
encodeBegin method, Performing Encoding
encodeChildren method, Performing Encoding
encodeEnd method
Performing Encoding
Creating the Renderer Class
encoding
When to Use a Custom Renderer
Creating Custom Component Classes
HTML render kit
Defining the Custom Component Tag in a Tag Library Descriptor
Registering a Custom Renderer with a Render Kit
render kit, Component Rendering Model
renderer, Creating Custom UI Components
Renderer class
Component Rendering Model
Component Rendering Model
Registering an Action Listener on a Component
Renderer implementation, Registering a Custom Renderer with a Render Kit
RenderKit class, Component Rendering Model
RenderKit implementation, Registering a Custom Renderer with a Render Kit
concurrent access, Transactions
confidentiality, Establishing a Secure Connection Using SSL
configuring beans, Configuring Beans
configuring JavaServer Faces applications, Steps in the Development Process
Application class, Application Configuration Resource File
application configuration resource files, Application Configuration Resource File
backing beans, Adding Managed Bean Declarations
commandButton tag, Rendering a Button with the commandButton Tag
conversion model, Converting a Component’s Value
error message registration, Creating a Custom Validator
navigation model
Navigation Model
Referencing a Method That Performs Navigation
value binding, Binding a Component Value to a Property
Application instance
Localizing Messages
Implementing the Validator Interface
Implementing the Validator Interface
configuring beans
See configuring beans
configuring navigation rules
See configuring navigation rules
faces-config.xml files, Configuring Navigation Rules
including the classes, pages, and other resources, Including the Classes, Pages, and Other Resources
including the required JAR files, Including the Required JAR Files
javax.faces.application.CONFIG_FILES context parameter, Application Configuration Resource File
registering custom converters
See registering custom converters
registering custom renderers, Delegating Rendering to a Renderer
See registering custom renderers
registering custom UI components
See registering custom UI components
registering custom validators
See registering custom validators
registering messages
See registering messages
restricting access to JavaServer Faces components, Restricting Access to JavaServer Faces Components
specifying a path to an application configuration resource file, Specifying a Path to an Application Configuration Resource File
specifying where UI component state is saved
Saving and Restoring State
Specifying Where State Is Saved
turning on validation of XML files, Turning On Validation of XML Files
validateXML context parameter, Turning On Validation of XML Files
verifying custom objects, Verifying Custom Objects
configuring navigation rules, Configuring Navigation Rules
from-action element, Configuring Navigation Rules
from-view-id element, Configuring Navigation Rules
navigation-case element
Configuring Navigation Rules
Configuring Navigation Rules
navigation-rule element
Configuring Navigation Rules
Configuring Navigation Rules
to-view-id element, Configuring Navigation Rules
Connection class, Common Client Interface
connection factories, JMS
creating
Creating the Administered Objects for the simplemessage Example
Creating JMS Administered Objects for the Synchronous Receive Example
injecting resources
The simplemessage Application Client
JMS Connection Factories
introduction, JMS Connection Factories
specifying for remote servers, Creating Administered Objects for Multiple Systems
Connection interface, Transactions in Web Components
Connection interface (java.sql), Methods Not Allowed in Container-Managed Transactions
Connection interface (JMS), JMS Connections
connection pooling, DataSource Objects and Connection Pools
ConnectionFactory interface (JMS), JMS Connection Factories
connections
mail sessions, The confirmer Example Application
secure, Installing and Configuring SSL Support
securing, Establishing a Secure Connection Using SSL
connections, JMS
introduction, JMS Connections
managing in Java EE applications, Resource Management
connections, SAAJ, SAAJ Connections
closing, Sending a Message
point-to-point, Getting a SOAPConnection Object
connectors, See J2EE Connector architecture
constraint
authorization, Setting Up Security Roles
security, Setting Up Security Roles
user data, Setting Up Security Roles
container-managed sign-on
Securing EIS Applications
Container-Managed Sign-On
container-managed transactions, See transactions, container-managed
containers, Java EE Containers
See also applet containers
See also application client containers
See also EJB containers
See also web containers
configurable services, Container Services
nonconfigurable services, Container Services
securing, Securing Containers
security, Overview of Java EE Security
services, Container Services
trust between, Propagating Security Identity
context roots, Setting the Context Root
conversion model
User Interface Component Model
Conversion Model
converter attribute, Converting a Component’s Value
custom converters, Using a Custom Converter
custom objects, Using Custom Objects
text components, Using Text Components
Converter implementations
Conversion Model
Using the Standard Converters
Using a Custom Converter
Converter interface
Creating a Custom Converter
Creating a Custom Converter
converter tags
See converter tags
converterId attribute, Converting a Component’s Value
converters
See converters
converting data between model and presentation, Conversion Model
javax.faces.convert package, Using the Standard Converters
model view
Creating a Custom Converter
Creating a Custom Converter
presentation view
Creating a Custom Converter
Creating a Custom Converter
Converter implementation classes
BigDecimalConverter class, Using the Standard Converters
BigIntegerConverter class, Using the Standard Converters
BooleanConverter class, Using the Standard Converters
ByteConverter class, Using the Standard Converters
CharacterConverter class, Using the Standard Converters
DateTimeConverter, Using the Standard Converters
DateTimeConverter class
Using the Standard Converters
Using DateTimeConverter
DoubleConverter class, Using the Standard Converters
FloatConverter class, Using the Standard Converters
IntegerConverter class, Using the Standard Converters
LongConverter class, Using the Standard Converters
NumberConverter class
Using the Standard Converters
Converting a Component’s Value
Using NumberConverter
ShortConverter class, Using the Standard Converters
converter tags
convertDateTime tag, Using DateTimeConverter
convertDateTime tag attributes, Using DateTimeConverter
converter tag
Converting a Component’s Value
Using Custom Objects
convertNumber tag
Converting a Component’s Value
Using NumberConverter
Using NumberConverter
convertNumber tag attributes, Using NumberConverter
parseLocale attribute, Using DateTimeConverter
converters
JavaServer Faces Technology User Interface
User Interface Component Model
Restore View Phase
custom converters
Conversion Model
Using Custom Objects
Using a Custom Converter
standard converters
See standard converters
converting data, See conversion model
CORBA, Configuring IOR Security
core tags, convertNumber tag, Using NumberConverter
createBrowser method, Writing the Client Program for the Queue Browser Example
createTimer method, Creating Timers
credential, Some Other Terminology
cryptography, public key, Working with Digital Certificates
CSR, Signing Digital Certificates
cursor, StAX API, Cursor API
Cursor, StAX example, Cursor Example
Cursor-to-Event, StAX example, Cursor-to-Event Example
custom converters
Conversion Model
Using Custom Objects
creating, Creating a Custom Converter
getAsObject(FacesContext, UIComponent, String) method, Creating a Custom Converter
getAsObject method, Creating a Custom Converter
getAsString(FacesContext, UIComponent, Object) method, Creating a Custom Converter
getAsString method, Creating a Custom Converter
registering
See registering custom converters
using, Using a Custom Converter
custom objects
See custom validators
custom converters
Using Custom Objects
Using a Custom Converter
See custom converters
custom tags
See custom tags
custom UI components
See custom UI components
using, Using Custom Objects
using custom converters, renderers and tags together, Component, Renderer, and Tag Combinations
custom renderers, Registering a Custom Renderer with a Render Kit
creating the Renderer class, Creating the Renderer Class
determining necessity of, When to Use a Custom Renderer
performing decoding, Performing Decoding
performing encoding, Performing Encoding
registering
See registering custom renderers
registering with a render kit, Registering a Custom Renderer with a Render Kit
ResponseWriter class
Performing Encoding
Creating the Renderer Class
startElement method, Performing Encoding
writeAttribute method, Performing Encoding
custom tags
Custom Tags in JSP Pages
Validation Model
Creating Custom UI Components
See also classic tags
See also simple tags
and scripting elements, Programming Tags That Accept Scripting Elements
attributes
validation, Attribute Validation
cooperating, Communication between Tags
createValidator method, Writing the Tag Handler
creating, Creating a Custom Tag
creating tag handler, Creating the Component Tag Handler
creating using JSP syntax, Encapsulating Reusable Content Using Tag Files
Duke’s Bank, Design Strategies
getComponentType method
Steps for Creating a Custom Component
Retrieving the Component Type
getRendererType method
Steps for Creating a Custom Component
Identifying the Renderer Type
Providing the Renderer Type
identifying the renderer type, Delegating Rendering to a Renderer
release method, Releasing Resources
setProperties method, Steps for Creating a Custom Component
tag handler class
Writing the Tag Handler
Summary of the Application Classes
Steps for Creating a Custom Component
Creating the Component Tag Handler
tag library descriptor
Writing the Tag Library Descriptor
Steps for Creating a Custom Component
tag library descriptors
See tag library descriptors
template tag library, The Example JSP Pages
UIComponentTag class
Steps for Creating a Custom Component
Creating the Component Tag Handler
UIComponentTag.release method, Releasing Resources
ValidatorTag class, Writing the Tag Handler
writing the tag library descriptor, Writing the Tag Library Descriptor
custom UI components
creating, Creating Custom UI Components
creating component classes, Creating Custom Component Classes
custom objects, Using Custom Objects
delegating rendering, Delegating Rendering to a Renderer
determining necessity of, When to Use a Custom Component
handling events emitted by, Handling Events for Custom Components
queueEvent method, Performing Decoding
registering
See registering custom UI components
restoreState(FacesContext, Object) method
Implementing the Validator Interface
Saving and Restoring State
saveState(FacesContext) method, Saving and Restoring State
saving state, Saving and Restoring State
specifying where state is saved, Specifying Where State Is Saved
steps for creating, Steps for Creating a Custom Component
using, Using a Custom Component
custom validators
Using a Custom Validator
Creating a Custom Validator
createValidator method, Writing the Tag Handler
custom validator tags, Creating a Custom Tag
implementing a backing-bean method to perform validation, Creating a Custom Validator
implementing the Validator interface, Implementing the Validator Interface
registering
See registering custom validators
using, Using a Custom Validator
validate method
Implementing the Validator Interface
Writing a Method to Perform Validation
Validator implementation
Implementing the Validator Interface
Creating a Custom Tag
backing bean methods, Writing Backing Bean Methods
Validator interface, Creating a Custom Validator
validator tag
Creating a Custom Validator
Creating a Custom Tag
ValidatorTag class, Writing the Tag Handler