The Java EE 5 Tutorial
- The Java EE 5 Tutorial
- Preface
- Before You Read This Book
- How This Book Is Organized
- Application Server Documentation Set
- Related Documentation
- Default Paths and File Names
- Typographic Conventions
- Symbol Conventions
- Documentation, Support, and Training
- Searching Sun Product Documentation
- Third-Party Web Site References
- Sun Welcomes Your Comments
- Introduction
- Overview
- 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 5 APIs
- Enterprise JavaBeans Technology
- Java Servlet Technology
- JavaServer Pages Technology
- JavaServer Pages Standard Tag Library
- JavaServer Faces
- Java Message Service API
- Java Transaction API
- JavaMail API
- JavaBeans Activation Framework
- Java API for XML Processing
- Java API for XML Web Services (JAX-WS)
- Java Architecture for XML Binding (JAXB)
- SOAP with Attachments API for Java
- Java API for XML Registries
- J2EE Connector Architecture
- Java Database Connectivity API
- Java Persistence API
- Java Naming and Directory Interface
- Java Authentication and Authorization Service
- Simplified Systems Integration
- Sun Java System Application Server Platform Edition 9
- Using the Tutorial Examples
- Overview
- The Web Tier
- Getting Started with Web Applications
- Web Applications
- Web Application Life Cycle
- Web Modules
- Configuring Web Applications
- Dukes Bookstore Examples
- Accessing Databases from Web Applications
- Further Information about Web Applications
- Java Servlet Technology
- What Is a Servlet?
- The Example Servlets
- Servlet Life Cycle
- Sharing Information
- Initializing a Servlet
- Writing Service Methods
- Filtering Requests and Responses
- Invoking Other Web Resources
- Accessing the Web Context
- Maintaining Client State
- Finalizing a Servlet
- Further Information about Java Servlet Technology
- JavaServer Pages Technology
- What Is a JSP Page?
- The Example JSP Pages
- The Life Cycle of a JSP Page
- Creating Static Content
- Creating Dynamic Content
- Unified Expression Language
- JavaBeans Components
- Using Custom Tags
- Reusing Content in JSP Pages
- Transferring Control to Another Web Component
- Including an Applet
- Setting Properties for Groups of JSP Pages
- Further Information about JavaServer Pages Technology
- JavaServer Pages Documents
- JavaServer Pages Standard Tag Library
- Custom Tags in JSP Pages
- What Is a Custom Tag?
- The Example JSP Pages
- Types of Tags
- Encapsulating Reusable Content Using Tag Files
- Tag Library Descriptors
- Programming Simple Tag Handlers
- Scripting in JSP Pages
- JavaServer Faces Technology
- JavaServer Faces Technology User Interface
- JavaServer Faces Technology Benefits
- What Is a JavaServer Faces Application?
- A Simple JavaServer Faces Application
- User Interface Component Model
- Navigation Model
- Backing Beans
- The Life Cycle of a JavaServer Faces Page
- Further Information about JavaServer Faces Technology
- Using JavaServer Faces Technology in JSP Pages
- The Example JavaServer Faces Application
- Setting Up a Page
- Using the Core Tags
- Adding UI Components to a Page Using the HTML Component Tags
- UI Component Tag Attributes
- Adding a Form Component
- Using Text Components
- Using Command Components for Performing Actions and Navigation
- Using Data-Bound Table Components
- Adding Graphics and Images with the graphicImage Tag
- Laying Out Components with the UIPanel Component
- Rendering Components for Selecting One Value
- Rendering Components for Selecting Multiple Values
- The UISelectItem, UISelectItems, and UISelectItemGroup Components
- Displaying Error Messages with the message and messages Tags
- Using Localized Data
- Using the Standard Converters
- Registering Listeners on Components
- Using the Standard Validators
- Binding Component Values and Instances to External Data Sources
- Binding Converters, Listeners, and Validators to Backing Bean Properties
- Referencing a Backing Bean Method
- Using Custom Objects
- Developing with JavaServer Faces Technology
- Writing Bean Properties
- Performing Localization
- Creating a Custom Converter
- Implementing an Event Listener
- Creating a Custom Validator
- Writing Backing Bean Methods
- Creating Custom UI Components
- Determining Whether You Need a Custom Component or Renderer
- Understanding the Image Map Example
- Steps for Creating a Custom Component
- Creating Custom Component Classes
- Delegating Rendering to a Renderer
- Handling Events for Custom Components
- Creating the Component Tag Handler
- Defining the Custom Component Tag in a Tag Library Descriptor
- Configuring JavaServer Faces Applications
- Application Configuration Resource File
- Configuring Beans
- Registering Custom Error Messages
- Registering Custom Localized Static Text
- Registering a Custom Validator
- Registering a Custom Converter
- Configuring Navigation Rules
- Registering a Custom Renderer with a Render Kit
- Registering a Custom Component
- Basic Requirements of a JavaServer Faces Application
- Internationalizing and Localizing Web Applications
- Getting Started with Web Applications
- Web Services
- Building Web Services with JAX-WS
- Setting the Port
- Creating a Simple Web Service and Client with JAX-WS
- Types Supported by JAX-WS
- Web Services Interoperability and JAX-WS
- Further Information about JAX-WS
- Binding between XML Schema and Java Classes
- JAXB Architecture
- Representing XML Content
- Binding XML Schemas
- Customizing Generated Classes and Java Program Elements
- JAXB Examples
- Basic JAXB Examples
- Customizing JAXB Bindings
- Java-to-Schema Examples
- Create Marshal Example
- XmlAccessorOrder Example
- Using the @XmlAccessorOrder Annotation to Define Schema Element Ordering
- Using the @XmlType Annotation to Define Schema Element Ordering
- Schema Content Ordering in the Example
- Building and Running the XmlAccessorOrder Example Using NetBeans IDE
- Building and Running the XmlAccessorOrder Example Using Ant
- XmlAdapter Field Example
- XmlAttribute Field Example
- XmlRootElement Example
- XmlSchemaType Class Example
- XmlType Example
- Further Information about JAXB
- Streaming API for XML
- Why StAX?
- StAX API
- Using StAX
- Suns Streaming XML Parser Implementation
- Example Code
- Further Information about StAX
- SOAP with Attachments API for Java
- Overview of SAAJ
- SAAJ Tutorial
- Code Examples
- Further Information about SAAJ
- Building Web Services with JAX-WS
- Enterprise Beans
- Enterprise Beans
- Getting Started with Enterprise Beans
- Session Bean Examples
- The cart Example
- A Web Service Example: helloservice
- Using the Timer Service
- Handling Exceptions
- A Message-Driven Bean Example
- Persistence
- Introduction to the Java Persistence API
- Entities
- Managing Entities
- Persistence in the Web Tier
- Persistence in the EJB Tier
- The order Application
- Entity Relationships in the order Application
- Primary Keys in the order Application
- Entity Mapped to More Than One Database Table
- Cascade Operations in the order Application
- BLOB and CLOB Database Types in the order Application
- Temporal Types in the order Application
- Managing the order Applications Entities
- Building and Running the order Application
- The roster Application
- The order Application
- The Java Persistence Query Language
- Query Language Terminology
- Simplified Query Language Syntax
- Example Queries
- Full Query Language Syntax
- BNF Symbols
- BNF Grammar of the Java Persistence Query Language
- FROM Clause
- Path Expressions
- WHERE Clause
- SELECT Clause
- ORDER BY Clause
- The GROUP BY Clause
- Introduction to the Java Persistence API
- Services
- Introduction to Security in the Java EE Platform
- Overview of Java EE Security
- Security Implementation Mechanisms
- Securing Containers
- Securing the Application Server
- Working with Realms, Users, Groups, and Roles
- Establishing a Secure Connection Using SSL
- Further Information about Security
- Securing Java EE Applications
- Securing Enterprise Beans
- Accessing an Enterprise Bean Callers Security Context
- Declaring Security Role Names Referenced from Enterprise Bean Code
- Defining a Security View of Enterprise Beans
- Using Enterprise Bean Security Annotations
- Using Enterprise Bean Security Deployment Descriptor Elements
- Configuring IOR Security
- Deploying Secure Enterprise Beans
- Enterprise Bean Example Applications
- Securing Application Clients
- Securing EIS Applications
- Securing Enterprise Beans
- Securing Web Applications
- Overview of Web Application Security
- Working with Security Roles
- Checking Caller Identity Programmatically
- Defining Security Requirements for Web Applications
- Examples: Securing Web Applications
- Example: Using Form-Based Authentication with a JSP Page
- Creating a Web Client for Form-Based Authentication
- Creating the Login Form and the Error Page
- Specifying a Security Constraint
- Adding Authorized Roles and Users
- Mapping Application Roles to Application Server Groups
- Building, Packaging, and Deploying the Form-Based Authentication Example Using NetBeans IDE
- Building, Packaging, and Deploying the Form-Based Authentication Example Using Ant
- Testing the Form-Based Authentication Web Client
- Example: Basic Authentication with a Servlet
- Declaring Security Roles
- Specifying the Security Constraint
- Adding Authorized Roles and Users
- Mapping Application Roles to Application Server Groups
- Building, Packaging, and Deploying the Servlet Basic Authentication Example Using NetBeans IDE
- Building, Packaging, and Deploying the Servlet Basic Authentication Example Using Ant
- Running the Basic Authentication Servlet
- Troubleshooting the Basic Authentication Example
- Example: Basic Authentication with JAX-WS
- Annotating the Service
- Adding Security Elements to the Deployment Descriptor
- Linking Roles to Groups
- Building and Deploying helloservice with Basic Authentication Using NetBeans IDE
- Building and Deploying helloservice with Basic Authentication Using Ant
- Building and Running the helloservice Client Application with Basic Authentication Using NetBeans IDE
- Building and Running the helloservice Client Application with Basic Authentication Using Ant
- Example: Using Form-Based Authentication with a JSP Page
- The Java Message Service API
- Overview of the JMS API
- Basic JMS API Concepts
- The JMS API Programming Model
- Writing Simple JMS Client Applications
- Creating Robust JMS Applications
- Using the JMS API in a Java EE Application
- Further Information about JMS
- Java EE Examples Using the JMS API
- A Java EE Application That Uses the JMS API with a Session Bean
- A Java EE Application That Uses the JMS API with an Entity
- Overview of the clientmdbentity Example Application
- Writing the Application Components for the clientmdbentity Example
- Creating Resources for the clientmdbentity Example
- Building, Deploying, and Running the clientmdbentity Example Using NetBeans IDE
- Building, Deploying, and Running the clientmdbentity Example Using Ant
- An Application Example That Consumes Messages from a Remote Server
- Overview of the consumeremote Example Modules
- Writing the Module Components for the consumeremote Example
- Creating Resources for the consumeremote Example
- Using Two Application Servers for the consumeremote Example
- Building, Deploying, and Running the consumeremoteModules Using NetBeans IDE
- Building, Deploying, and Running the consumeremote Modules Using Ant
- An Application Example That Deploys a Message-Driven Bean on Two Servers
- Overview of the sendremote Example Modules
- Writing the Module Components for the sendremote Example
- Creating Resources for the sendremote Example
- Using Two Application Servers for the sendremote Example
- Building, Deploying, and Running the sendremote Modules Using NetBeans IDE
- Building, Deploying, and Running the sendremote Modules Using Ant
- Transactions
- What Is a Transaction?
- Container-Managed Transactions
- Bean-Managed Transactions
- Transaction Timeouts
- Updating Multiple Databases
- Transactions in Web Components
- Resource Connections
- Connector Architecture
- Introduction to Security in the Java EE Platform
- Case Studies
- The Coffee Break Application
- The Dukes Bank Application
- Overview of the Dukes Bank Application
- Enterprise Beans
- Application Client
- Web Client
- Building, Packaging, Deploying, and Running the Duke's Bank Application
- Appendixes
- Index
No comments:
Post a Comment