Book description
The Java EE 5 Tutorial is an introduction to programming server-side Java applications. This book takes a task-oriented, example-driven approach to show you how to build applications for the Java EE 5 platform. This book also describes the features and functionalities available with NetBeans 5.5.
What's new in this edition? The author team have updated the existing chapters to reflect the changes to JSP, EJB, Servlets, and more. Also, the authors have added new chapters on the Sun Java System Application Server 9 as a deployment environment for server-side technologies. The web-tier technology chapters cover the components used in developing the presentation layer of a Java EE 5 or stand-alone web application. The web services technology chapters cover the APIs used in developing standard web services. The Enterprise JavaBeans (EJB) technology chapters cover the components used in developing the business logic of a Java EE 5 application. The Persistence technology chapters cover the Java Persistence API, which is used for accessing databases from Java EE applications. The platform services chapters cover the system services used by all the Java EE 5 component technologies
Table of contents
- Copyright
- About This Tutorial
-
1. 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
-
One. The Web Tier
-
2. Getting Started with Web Applications
- Web Application Life Cycle
- Web Modules
- Configuring Web Applications
- Duke’s Bookstore Examples
- Accessing Databases from Web Applications
- Further Information
- 3. Java Servlet Technology
-
4. 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
- 5. JavaServer Pages Documents
- 6. JavaServer Pages Standard Tag Library
-
7. 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
- 8. Scripting in JSP Pages
-
9. JavaServer Faces Technology
- 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
-
10. 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
-
11. 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
-
12. 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
-
13. 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
- 14. Internationalizing and Localizing Web Applications
-
2. Getting Started with Web Applications
-
Two. Web Services
-
15. 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
-
16. Binding between XML Schema and Java Classes
- JAXB Architecture
- Representing XML Content
- Binding XML Schemas
- Customizing JAXB Bindings
- Examples
- Basic Examples
- Customizing JAXB Bindings
-
Java-to-Schema Examples
- j2s-create-marshal Example
-
j2s-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 j2s-xmlAccessorOrder Example Using NetBeans 5.5
- Building and Running the j2s-xmlAccessorOrder Example Using Ant
- j2s-xmlAdapter-field Example
- j2s-xmlAttribute-field Example
- j2s-xmlRootElement Example
- j2s-xmlSchemaType-class Example
- j2s-xmlType Example
- Further Information
-
17. Streaming API for XML
- Why StAX?
- StAX API
- Using StAX
- Sun’s Streaming XML Parser Implementation
- Example Code
- Further Information
-
18. SOAP with Attachments API for Java
- Overview of SAAJ
- Tutorial
- Code Examples
- Further Information
-
19. Java API for XML Registries
- Overview of JAXR
- Implementing a JAXR Client
-
Running the Client Examples
- Before You Compile the Examples
- Compiling the Examples
-
Running the Examples
- Getting a List of Your Registry Objects
- Running the JAXRPublish Example
- Running the JAXRQuery Example
- Running the JAXRQueryByNAICSClassification Example
- Running the JAXRDelete Example
- Publishing a Classification Scheme
- Running the Postal Address Examples
- Deleting a Classification Scheme
- Publishing a Concept for a WSDL Document
- Publishing an Organization with a WSDL Document in Its Service Binding
- Running the JAXRQueryByWSDLClassification Example
- Deleting a Concept
- Other Targets
- Using JAXR Clients in Java EE Applications
- Further Information
-
15. Building Web Services with JAX-WS
-
Three. Enterprise Beans
- 20. Enterprise Beans
- 21. Getting Started with Enterprise Beans
-
22. Session Bean Examples
- The cart Example
- A Web Service Example: helloservice
- Using the Timer Service
- Handling Exceptions
- 23. A Message-Driven Bean Example
-
Four. Persistence
-
24. Introduction to the Java Persistence API
- Entities
- Managing Entities
- 25. Persistence in the Web Tier
-
26. Persistence in the EJB Tier
-
The order Application
- Entity Relationships in the order Application
- Primary Keys in the order Application
- Generated Primary Keys
- 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 Application’s Entities
- Building and Running the order Application
- The roster Application
-
The order Application
-
27. The Java Persistence Query Language
- Terminology
- Simplified Syntax
- Example Queries
-
Full 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
-
24. Introduction to the Java Persistence API
-
Five. Services
-
28. Introduction to Security in Java EE
- Overview
- Security Implementation Mechanisms
- Securing Containers
- Securing the Application Server
- Working with Realms, Users, Groups, and Roles
- Establishing a Secure Connection Using SSL
- Further Information
-
29. Securing Java EE Applications
-
Securing Enterprise Beans
- Accessing an Enterprise Bean Caller’s 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
- Example Applications in the Application Server
- Further Information
-
Securing Enterprise Beans
-
30. Securing Web Applications
- Overview
- 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 5.5
- 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 5.5
- 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 5.5
- Building and Deploying HelloService with Basic Authentication Using Ant
- Building and Running the Client Application for HelloService with Basic Authentication Using NetBeans 5.5
- Building and Running the Client Application for HelloService with Basic Authentication Using Ant
-
Example: Using Form-Based Authentication with a JSP Page
- Further Information
-
31. The Java Message Service API
- Overview
- 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
-
32. 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
- An Application Example That Consumes Messages from a Remote Server
- An Application Example That Deploys a Message-Driven Bean on Two Servers
- 33. Transactions
- 34. Resource Connections
- 35. Connector Architecture
-
28. Introduction to Security in Java EE
-
Six. Case Studies
- 36. The Coffee Break Application
-
37. The Duke’s Bank Application
- Enterprise Beans
- Application Client
- Web Client
- Building, Packaging, Deploying, and Running the Application
- A. Java Encoding Schemes
- B. Preparation for Java EE Certification Exams
- About the Authors
Product information
- Title: The Java™ EE 5 Tutorial, Third Edition: For Sun Java System Application Server Platform Edition 9
- Author(s):
- Release date: November 2006
- Publisher(s): Addison-Wesley Professional
- ISBN: 0321490290
You might also like
book
Java Projects - Second Edition
Learn how to build scalable, resilient, and effective applications in Java that suit your software requirements. …
book
Clean Coder, The: A Code of Conduct for Professional Programmers
Programmers who endure and succeed amidst swirling uncertainty and nonstop pressure share a common attribute: They …
book
Clean Code: A Handbook of Agile Software Craftsmanship
Even bad code can function. But if code isn’t clean, it can bring a development organization …
book
Spring 5.0 Cookbook
Over 100 hands-on recipes to build web applications easily and efficiently IN Spring 5.0 About This …