Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Title Page
Copyright Page
Contents
Preface
Before You Read This Book
Related Documentation
Typographic Conventions
Default Paths and File Names
Third-Party Web Site References
Acknowledgments
Part I: Introduction
Chapter 1. Overview
Java EE 6 Platform Highlights
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 6 APIs
Java EE 6 APIs in the Java Platform, Standard Edition 6 and 7
GlassFish Server Tools
Chapter 2. Using the Tutorial Examples
Required Software
Starting and Stopping the GlassFish Server
Starting the Administration Console
Starting and Stopping the Java DB Server
Building the Examples
Tutorial Example Directory Structure
Getting the Latest Updates to the Tutorial
Debugging Java EE Applications
Part II: The Web Tier
Chapter 3. JavaServer Faces Technology: Advanced Concepts
The Lifecycle of a JavaServer Faces Application
Partial Processing and Partial Rendering
The Lifecycle of a Facelets Application
User Interface Component Model
Chapter 4. Using Ajax with JavaServer Faces Technology
Overview of Ajax
Using Ajax Functionality with JavaServer Faces Technology
Using Ajax with Facelets
Sending an Ajax Request
Monitoring Events on the Client
Handling Errors
Receiving an Ajax Response
Ajax Request Lifecycle
Grouping of Components
Loading JavaScript as a Resource
The ajaxguessnumber Example Application
Further Information about Ajax in JavaServer Faces Technology
Chapter 5. Composite Components: Advanced Topics and Example
Attributes of a Composite Component
Invoking a Managed Bean
Validating Composite Component Values
The compositecomponentlogin Example Application
Chapter 6. Creating Custom UI Components and Other Custom Objects
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
Implementing an Event Listener
Handling Events for Custom Components
Defining the Custom Component Tag in a Tag Library Descriptor
Using a Custom Component
Creating and Using a Custom Converter
Creating and Using a Custom Validator
Binding Component Values and Instances to Managed Bean Properties
Binding Converters, Listeners, and Validators to Managed Bean Properties
Chapter 7. Configuring JavaServer Faces Applications
Using Annotations to Configure Managed Beans
Application Configuration Resource File
Configuring Managed Beans
Registering Application Messages
Using Default Validators
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
Chapter 8. Uploading Files with Java Servlet Technology
The @MultipartConfig Annotation
The getParts and getPart Methods
The fileupload Example Application
Chapter 9. Internationalizing and Localizing Web Applications
Java Platform Localization Classes
Providing Localized Messages and Labels
Date and Number Formatting
Character Sets and Encodings
Part III: Web Services
Chapter 10. JAX-RS: Advanced Topics and Example
Annotations for Field and Bean Properties of Resource Classes
Subresources and Runtime Resource Resolution
Integrating JAX-RS with EJB Technology and CDI
Conditional HTTP Requests
Runtime Content Negotiation
Using JAX-RS With JAXB
The customer Example Application
Part IV: Enterprise Beans
Chapter 11. A Message-Driven Bean Example
Overview of the simplemessage Example
The simplemessage Application Client
The Message-Driven Bean Class
Running the simplemessage Example
Chapter 12. Using the Embedded Enterprise Bean Container
Overview of the Embedded Enterprise Bean Container
Developing Embeddable Enterprise Bean Applications
The standalone Example Application
Chapter 13. Using Asynchronous Method Invocation in Session Beans
Asynchronous Method Invocation
The async Example Application
Part V: Contexts and Dependency Injection for the Java EE Platform
Chapter 14. Contexts and Dependency Injection for the Java EE Platform: Advanced Topics
Using Alternatives in CDI Applications
Using Producer Methods, Producer Fields, and Disposer Methods in CDI Applications
Using Predefined Beans in CDI Applications
Using Events in CDI Applications
Using Interceptors in CDI Applications
Using Decorators in CDI Applications
Using Stereotypes in CDI Applications
Chapter 15. Running the Advanced Contexts and Dependency Injection Examples
The encoder Example: Using Alternatives
The producermethods Example: Using a Producer Method To Choose a Bean Implementation
The producerfields Example: Using Producer Fields to Generate Resources
The billpayment Example: Using Events and Interceptors
The decorators Example: Decorating a Bean
Part VI: Persistence
Chapter 16. Creating and Using String-Based Criteria Queries
Overview of String-Based Criteria API Queries
Creating String-Based Queries
Executing String-Based Queries
Chapter 17. Controlling Concurrent Access to Entity Data with Locking
Overview of Entity Locking and Concurrency
Lock Modes
Chapter 18. Using a Second-Level Cache with Java Persistence API Applications
Overview of the Second-Level Cache
Specifying the Cache Mode Settings to Improve Performance
Part VII: Security
Chapter 19. Java EE Security: Advanced Topics
Working with Digital Certificates
Authentication Mechanisms
Using Form-Based Login in JavaServer Faces Web Applications
Using the JDBC Realm for User Authentication
Securing HTTP Resources
Securing Application Clients
Securing Enterprise Information Systems Applications
Configuring Security Using Deployment Descriptors
Further Information about Security
Part VIII: Java EE Supporting Technologies
Chapter 20. Java Message Service Concepts
Overview of the JMS API
Basic JMS API Concepts
The JMS API Programming Model
Creating Robust JMS Applications
Using the JMS API in Java EE Applications
Further Information about JMS
Chapter 21. Java Message Service Examples
Writing Simple JMS Applications
Writing Robust JMS Applications
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
Chapter 22. Bean Validation: Advanced Topics
Creating Custom Constraints
Customizing Validator Messages
Grouping Constraints
Chapter 23. Using Java EE Interceptors
Overview of Interceptors
Using Interceptors
The interceptor Example Application
Chapter 24. The Resource Adapter Example
The Resource Adapter
The Message-Driven Bean
The Web Application
Running the mailconnector Example
Part IX: Case Studies
Chapter 25. Duke’s Bookstore Case Study Example
Design and Architecture of Duke’s Bookstore
The Duke’s Bookstore Interface
Running the Duke’s Bookstore Case Study Application
Chapter 26. Duke’s Tutoring Case Study Example
Design and Architecture of Duke’s Tutoring
Main Interface
Administration Interface
Running the Duke’s Tutoring Case Study Application
Chapter 27. Duke’s Forest Case Study Example
Design and Architecture of Duke’s Forest
Building and Deploying the Duke’s Forest Case Study Application
Running the Duke’s Forest Application
Index
← Prev
Back
Next →
← Prev
Back
Next →