Table of Contents
Preface
Chapter 1: Getting Started with GlassFish
Chapter 2: Servlet Development and Deployment
Chapter 3: JavaServer Pages
Chapter 4: Database Connectivity
Chapter 5: JSP Standard Tag Library
Chapter 6: JavaServer Faces
Chapter 7: Java Messaging Service
Chapter 8: Security
Chapter 9: Enterprise JavaBeans
Chapter 10: Web Services
Chapter 11: Beyond Java EE
Appendix A: Sending Email from Java EE Applications
Appendix B: IDE Integration
Index
- Chapter 1: Getting Started with GlassFish
- Overview of Java EE and GlassFish
- GlassFish Advantages
- Obtaining GlassFish
- Installing GlassFish
- GlassFish Dependencies
- Performing the Installation
- Verifying the Installation
- Deploying Our First Java EE Application
- Deploying an Application through the Web Console
- Undeploying an Application through the Web Console
- Deploying an Application through the Command Line
- Undeploying an Application through the Command Line
- Deploying Our First Java EE Application
- GlassFish Domains Explained
- Creating Domains
- Deleting Domains
- Stopping a Domain
- Setting Up Database Connectivity
- Setting Up Connection Pools
- Summary
- Overview of Java EE and GlassFish
- Chapter 2: Servlet Development and Deployment
- Writing Our First Servlet
- Compiling the Servlet
- Configuring the Servlet
- Packaging the Web Application
- Deploying the Web Application
- Testing the Web Application
- Processing HTML Forms
- Request Forwarding and Response Redirection
- Request Forwarding
- Response Redirection
- Persisting Application Data across Requests
- Summary
- Chapter 3: JavaServer Pages
- Introduction to JavaServer Pages
- Developing Our First JSP
- JSP Implicit Objects
- JSPs and JavaBeans
- Reusing JSP Content
- JSP Custom Tags
- Extending SimpleTagSupport
- Using Tag Files to Create Custom JSP Tags
- Unified Expression Language
- Summary
- Chapter 4: Database Connectivity
- The CustomerDB Database
- JDBC
- Retrieving Data from a Database
- Modifying Database Data
- The Java Persistence API
- Entity Relationships
- One-to-One Relationships
- One-to-Many Relationships
- Many-to-Many Relationships
- Composite Primary Keys
- Java Persistence Query Language
- Final Notes
- Summary
- Chapter 5: JSP Standard Tag Library
- Core JSTL Tag Library
- Formatting JSTL Tag Library
- SQL JSTL Tag Library
- XML JSTL Tag Library
- JSTL Functions
- Summary
- Chapter 6: JavaServer Faces
- Developing Our First JSF Application
- Custom Data Validation
- Creating Custom Validators
- Validator Methods
- Customizing JSF's Default Messages
- Integrating JSF and JPA
- JSF Core Components
- <f:actionListener>
- <f:attribute>
- <f:convertDateTime>
- <f:convertNumber>
- <f:converter>
- <f:facet>
- <f:loadBundle>
- <f:param>
- <f:phaseListener>
- <f:selectItem>
- <f:selectItems>
- <f:setPropertyActionListener>
- <f:subview>
- <f:validateDoubleRange>
- <f:validateLength>
- <f:validateLongRange>
- <f:validator>
- <f:valueChangeListener>
- <f:verbatim>
- <f:view>
- JSF HTML Components
- <h:column>
- <h:commandButton>
- <h:commandLink>
- <h:dataTable>
- <h:form>
- <h:graphicImage>
- <h:inputHidden>
- <h:inputSecret>
- <h:inputText>
- <h:inputTextarea>
- <h:message>
- <h:messages>
- <h:outputFormat>
- <h:outputLabel>
- <h:outputLink>
- <h:outputText>
- <h:panelGrid>
- <h:panelGroup>
- <h:selectBooleanCheckbox>
- <h:selectManyCheckbox>
- <h:selectManyListbox>
- <h:selectManyMenu>
- <h:selectOneListbox>
- <h:selectOneMenu>
- <h:selectOneRadio>
- Additional JSF Tag Libraries
- JSF Core Components
- Summary
- Chapter 7: Java Messaging Service
- Setting Up GlassFish for JMS
- Setting Up a JMS Connection Factory
- Setting Up a JMS Message Queue
- Setting Up a JMS Message Topic
- Message Queues
- Sending Messages to a Message Queue
- Retrieving Messages from a Message Queue
- Asynchronously Receiving Messages from a Message Queue
- Browsing Message Queues
- Message Topics
- Sending Messages to a Message Topic
- Receiving Messages from a Message Topic
- Creating Durable Subscribers
- Summary
- Setting Up GlassFish for JMS
- Chapter 8: Security
- Security Realms
- Predefined Security Realms
- admin-realm
- The file Realm
- The certificate Realm
- Defining Additional Realms
- Defining Additional File Realms
- Defining Additional Certificate Realms
- Defining an LDAP Realm
- Defining a Solaris Realm
- Defining a JDBC Realm
- Defining Custom Realms
- Predefined Security Realms
- Summary
- Security Realms
- Chapter 9: Enterprise JavaBeans
- Session Beans
- Simple Session Bean
- A More Realistic Example
- Invoking Session Beans from Web Applications
- Message-Driven Beans
- Transactions in Enterprise Java Beans
- Container-Managed Transactions
- Bean-Managed Transactions
- Enterprise JavaBean Life Cycles
- Stateful Session Bean Life Cycle
- Stateless Session Bean Life Cycle
- Message-Driven Bean Life Cycle
- EJB Timer Service
- EJB Security
- Client Authentication
- Summary
- Session Beans
- Chapter 10: Web Services
- Developing Web Services with JAX-WS
- Developing a Web Service Client
- Sending Attachments to Web Services
- Exposing EJBs as Web Services
- EJB Web Service Clients
- Securing Web Services
- Securing EJB Web Services
- Developing Web Services with JAX-WS
- Summary
- Chapter 11: Beyond Java EE
- Facelets
- Downloading Facelets
- Configuring Our Facelets Application
- Writing a Facelets Application
- Facelets Templating
- Ajax4jsf
- Downloading Ajax4jsf
- Configuring Our JSF Application for Ajax4jsf
- Writing an AJAX-Enabled Application with Ajax4jsf
- Seam
- Downloading Seam
- Configuring a Seam Application
- Developing a Seam Application
- Summary
- Facelets
- Appendix A: Sending Email from Java EE Applications
- GlassFish Configuration
- Implementing Email Delivery Functionality
- Appendix B: IDE Integration
- NetBeans
- Eclipse



