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

 

S

SAAJ
SOAP with Attachments API for Java
SOAP with Attachments API for Java
Introduction to the Java Persistence API
examples, Code Examples
messages, SAAJ Messages
overview, Overview of SAAJ
specification, SOAP with Attachments API for Java
tutorial, SAAJ Tutorial
SASL, Java SE Security Implementation Mechanisms
schema, deployment descriptors, Using Deployment Descriptors for Declarative Security
schemagen tool
Tools
JAXB Schema Generator Option
secure connections
Establishing a Secure Connection Using SSL
Installing and Configuring SSL Support
Secure Socket Layer (SSL), Establishing a Secure Connection Using SSL
security
annotations
Using Annotations
Securing Java EE Applications
Securing Web Applications
enterprise beans
Using Enterprise Bean Security Annotations
Overview of Web Application Security
anonymous role, Accessing Unprotected Enterprise Beans
application, Application-Layer Security
characteristics of, Characteristics of Application Security
application client tier
callback handlers, Using Login Modules
callback handlers
Securing Application Clients
Using Login Modules
clients, Securing Application Clients
constraints, Specifying Security Constraints
container, Overview of Java EE Security
container trust, Propagating Security Identity
containers, Securing Containers
declarative
Overview of Java EE Security
Using Deployment Descriptors for Declarative Security
Securing Java EE Applications
Securing Web Applications
default principal, Accepting Unauthenticated Users
deploying enterprise beans, Deploying Secure Enterprise Beans
deployment descriptor
enterprise beans, Using Enterprise Bean Security Deployment Descriptor Elements
EIS applications, Securing EIS Applications
component-managed sign-on, Component-Managed Sign-On
container-managed sign-on, Container-Managed Sign-On
end-to-end, Message-Layer Security
enterprise beans, Securing Enterprise Beans
example, A Simple Security Example
functions, Security Functions
groups, What Is a Group?
implementation mechanisms, Security Implementation Mechanisms
interoperability, Configuring IOR Security
introduction, Introduction to Security in the Java EE Platform
IOR, Configuring IOR Security
JAAS login modules, Using Login Modules
Java EE
mechanisms, Java EE Security Implementation Mechanisms
Java SE, Java SE Security Implementation Mechanisms
linking roles, Defining Security Roles
login forms, Securing Application Clients
login modules, Using Login Modules
mechanisms, Security Functions
message-layer, Message-Layer Security
method permissions, Defining a Security View of Enterprise Beans
annotations, Specifying Method Permissions
deployment descriptor, Specifying Method Permissions
specifying, Specifying Method Permissions
policy domain, Some Other Terminology
programmatic
Overview of Java EE Security
Using Programmatic Security
Securing Java EE Applications
Securing Web Applications
programmatic login, Securing the Application Server
propagating identity, Propagating Security Identity
realms, What Is a Realm?
resource adapter, Configuring Resource Adapter Security
role names
Declaring Security Role Names Referenced from Enterprise Bean Code
Declaring Security Roles
role reference, Declaring Security Roles Using Annotations
roles
What Is a Role?
Declaring Security Roles Using Deployment Descriptor Elements
Defining a Security View of Enterprise Beans
Working with Security Roles
declaring, Declaring Security Roles
defining, Working with Security Roles
setting up, Setting Up Security Roles
run-as identity, Propagating Security Identity
annotation, Propagating Security Identity
single sign-on, Securing the Application Server
specifying run-as identity, Propagating Security Identity
transport-layer
Transport-Layer Security
Establishing a Secure Connection Using SSL
users
What Is a User?
Working with Security Roles
view
defining, Defining a Security View of Enterprise Beans
web applications, Securing Web Applications
overview, Overview of Web Application Security
web components, Securing Web Applications
security constraint, Setting Up Security Roles
security-constraint element, Setting Up Security Roles
security constraints, Specifying Security Constraints
security domain, Some Other Terminology
security identity
propagating, Propagating Security Identity
specific identity, Propagating Security Identity
security-role element
Defining Security Roles
Using Enterprise Bean Security Deployment Descriptor Elements
security-role-mapping element, Mapping Roles to Users and Groups
security-role-ref element
Using Enterprise Bean Security Deployment Descriptor Elements
Declaring Security Roles
security
role references
Declaring Security Role Names Referenced from Enterprise Bean Code
Declaring Security Roles
security role references, Declaring and Linking Role References
linking, Defining Security Roles
mapping to security roles, Declaring and Linking Role References
security roles
Setting Up Security Roles
Defining a Security View of Enterprise Beans
Duke’s Bank, Protecting the Enterprise Beans
security view, defining, Defining a Security View of Enterprise Beans
send method, JMS Message Producers
server, authentication, HTTPS Client Authentication
servers, certificates, Working with Digital Certificates
servers, Java EE
deploying on more than one
An Application Example That Consumes Messages from a Remote Server
An Application Example That Deploys a Message-Driven Bean on Two Servers
running JMS clients on more than one, Running JMS Client Programs on Multiple Systems
Servlet interface, What Is a Servlet?
ServletContext interface, Accessing the Web Context
ServletInputStream class, Getting Information from Requests
ServletOutputStream class, Constructing Responses
ServletRequest interface, Getting Information from Requests
ServletResponse interface, Constructing Responses
servlets, What Is a Servlet?
binary data
reading, Getting Information from Requests
writing, Constructing Responses
character data
reading, Getting Information from Requests
writing, Constructing Responses
examples, Web Application Life Cycle
finalization, Finalizing a Servlet
initialization, Initializing a Servlet
failure, Initializing a Servlet
life cycle, Servlet Life Cycle
life-cycle events
handling, Handling Servlet Life-Cycle Events
service methods, Writing Service Methods
notifying, Notifying Methods to Shut Down
programming long running, Creating Polite Long-Running Methods
tracking service requests, Tracking Service Requests
session beans
Enterprise JavaBeans Technology
What Is a Session Bean?
activation, The Life Cycle of a Stateful Session Bean
clients, What Is a Session Bean?
databases, Synchronizing a Session Bean’s Instance Variables
Duke’s Bank
Session Beans
The TxControllerBean Session Bean
examples
Coding the Enterprise Bean Class
Session Bean Examples
A Java EE Application That Uses the JMS API with a Session Bean
passivation, The Life Cycle of a Stateful Session Bean
requirements, Session Bean Class
stateful
Stateful Session Beans
When to Use Session Beans
stateless
Stateless Session Beans
When to Use Session Beans
transactions
Container-Managed Transactions
Synchronizing a Session Bean’s Instance Variables
Bean-Managed Transactions
web services
Web Service Clients
Stateless Session Bean Implementation Class
Session interface, JMS Sessions
sessions, Maintaining Client State
associating attributes, Associating Objects with a Session
associating with user, Session Tracking
invalidating, Session Management
notifying objects associated with, Notifying Objects That Are Associated with a Session
sessions, JMS
introduction, JMS Sessions
managing in Java EE applications, Resource Management
setAttribute method, Tag Handlers for Tags That Define Variables
setContent method
Adding Content to the SOAPPart Object
Creating an AttachmentPart Object and Adding Content
setDynamicAttribute method, Setting Dynamic Attributes
setRollbackOnly method, Managing Distributed Transactions
sign-on
component-managed
Securing EIS Applications
Component-Managed Sign-On
container-managed
Securing EIS Applications
Container-Managed Sign-On
Simple Authentication and Security Layer, Java SE Security Implementation Mechanisms
simple tags
See also tag files
attributes
dynamic, Dynamic Attributes
fragment, Fragment Attributes
simple, Simple Attributes
examples
An Iteration Tag
A Template Tag Library
expression language variables
defining, Tags That Define Variables
shared objects, Cooperating Tags
example, Cooperating Tags
named, Cooperating Tags
private, Cooperating Tags
specifying body of, jsp:body Element
tag handlers
Custom Tags in JSP Pages
Programming Simple Tag Handlers
defining scripting variables, Tag Handlers for Tags That Define Variables
how invoked, How Is a Simple Tag Handler Invoked?
supporting deferred value and deferred method attributes, Setting Deferred Value Attributes and Deferred Method Attributes
supporting dynamic attributes, Setting Dynamic Attributes
with attributes, Defining Attributes in a Tag Handler
with bodies, Tag Handlers for Tags with Bodies
variables
providing information about
Declaring Tag Variables for Tag Handlers
TagExtraInfo Class
with bodies, Tags with Bodies
SimpleTag interface, Programming Simple Tag Handlers
SimpleTagSupport class, Programming Simple Tag Handlers
single sign-on, Securing the Application Server
SingleThreadModel interface, Controlling Concurrent Access to Shared Resources
SOAP
Building Web Services with JAX-WS
Building Web Services with JAX-WS
Further Information about JAX-WS
SOAP with Attachments API for Java
body, Adding Content to the Body
adding content, Adding Content to the Body
Content-Type header, Creating an AttachmentPart Object and Adding Content
envelope, Adding Content to the Body
headers
adding content, Adding Content to the Header
Content-Id, Creating an AttachmentPart Object and Adding Content
Content-Location, Creating an AttachmentPart Object and Adding Content
Content-Type, Creating an AttachmentPart Object and Adding Content
example, Header Example
StAX and, StAX Use Cases
SOAP faults, Using SOAP Faults
detail, Overview of SOAP Faults
fault actor, Overview of SOAP Faults
fault code, Overview of SOAP Faults
fault string, Overview of SOAP Faults
retrieving information, Retrieving Fault Information
SAAJ example, SOAP Fault Example
SOAP messages, SOAP Transport Protocol
securing, Message-Layer Security
SOAP with Attachments API for Java
See SAAJ
SOAPBody interface
What Is in a Message?
Adding Content to the Body
SOAPBodyElement interface
Adding Content to the Body
Adding Content to the Body
SOAPConnection class
SAAJ Connections
SOAPConnection Objects
getting objects, Getting a SOAPConnection Object
SOAPElement interface, Adding Content to the Body
SOAPEnvelope interface
What Is in a Message?
Adding Content to the Body
Adding Content to the Body
SOAPFactory class, Adding Content to the Body
SOAPFault interface, Overview of SOAP Faults
creating and populating objects, Creating and Populating a SOAPFault Object
detail element, Overview of SOAP Faults
fault actor element, Overview of SOAP Faults
fault code element, Overview of SOAP Faults
fault string element, Overview of SOAP Faults
SOAPHeader interface
What Is in a Message?
Adding Content to the Header
SOAPHeaderElement interface
Adding Content to the Body
Adding Content to the Header
SOAPMessage class
What Is in a Message?
Parts of a Message
Accessing Elements of a Message
SOAPPart class
What Is in a Message?
SAAJ and DOM
Adding Content to the Body
adding content, Adding Content to the SOAPPart Object
SQL
Java Database Connectivity API
Queries That Navigate to Related Entities
Identifiers
Path Expressions
SQL92, NULL Values
SSL
Transport-Layer Security
Establishing a Secure Connection Using SSL
HTTPS Client Authentication
connector, Installing and Configuring SSL Support
connectors
Application Server, Installing and Configuring SSL Support
specifying, Setting Up Security Roles
tips, Tips on Running SSL
verifying support, Verifying SSL Support
SSL HTTPS Connector, configuring, Installing and Configuring SSL Support
SSO, Securing the Application Server
standard converters, Conversion Model
Converter implementation classes, Using the Standard Converters
converter tags
Using the Core Tags
Using the Core Tags
Converting a Component’s Value
NumberConverter class, Using the Standard Converters
using, Using the Standard Converters
standard validators
using, Using the Standard Validators
validator implementation classes
See validator implementation classes
validator tags
See validator tags
state fields, query language, Query Language Terminology
StAX, Streaming API for XML
API, StAX API
choosing, Choosing between Cursor and Iterator APIs
cursor, Cursor API
iterator, Iterator API
CDATA events, Reporting CDATA Events
DOM, compared, Streaming versus DOM
event mapping, Example of Event Mapping
example code, Example Code
Cursor, Cursor Example
Cursor-to-Event, Cursor-to-Event Example
Event, Event Example
Filter, Filter Example
Read-and-Write, Read-and-Write Example
Writer, Writer Example
factory classes, StAX Factory Classes
XMLEventFactory, XMLEventFactory Class
XMLInputFactory, XMLInputFactory Class
XMLOutputFactory, XMLOutputFactory Class
overview, Streaming API for XML
pull parsing, Pull Parsing versus Push Parsing
resources, namespaces, errors, Resources, Namespaces, and Errors
Sun parser implementation, Sun’s Streaming XML Parser Implementation
use cases, StAX Use Cases
using, Using StAX
XML streams, reading, Reading XML Streams
XML streams, writing, Writing XML Streams
XMLEventReader interface, Using XMLEventReader
XMLEventWriter interface, Using XMLEventWriter
XMLStreamReader interface, Using XMLStreamReader
XMLStreamWriter interface, Using XMLStreamWriter
Streaming API for XML, See StAX
StreamMessage interface, Message Bodies
subscription names, for durable subscribers, Creating Durable Subscriptions
substitution parameters, defining, See messages, param tag
Sun Java System Application Server 9.1, Sun Java System Application Server 9.1
synchronous message consumption, Message Consumption
JMS client example, A Simple Example of Synchronous Message Receives