PacktLib: Java EE 6 with GlassFish 3 Application Server

Java EE 6 with GlassFish 3 Application Server

Credits

About the Author

About the Reviewers

Preface

Getting Started with GlassFish

Overview of Java EE and GlassFish

Obtaining GlassFish

Installing GlassFish

Verifying the installation

GlassFish domains

Setting up database connectivity

Final notes

Summary

Servlet Development and Deployment

What is a servlet?

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

Persisting application data across requests

New features introduced in Servlet 3.0

Summary

JavaServer Pages

Introduction to JavaServer Pages

Developing our first JSP

JSP implicit objects

JSPs and JavaBeans

Reusing JSP content

JSP custom tags

Unified Expression Language

JSP XML syntax

Summary

JSP Standard Tag Library

Core JSTL tag library

Formatting JSTL tag library

SQL JSTL tag library

XML JSTL tag library

JSTL functions

Summary

Database Connectivity

The CustomerDB database

JDBC

The Java Persistence API

New features introduced in JPA 2.0

Summary

JavaServer Faces

Introduction to JSF 2.0

Developing our first JSF 2.0 application

Custom data validation

Customizing JSF's default messages

Integrating JSF and JPA

Ajax enabling JSF 2.0 applications

JSF standard components

Summary

Java Messaging Service

Setting up GlassFish for JMS

Message queues

Message topics

Summary

Security

Security realms

Summary

Enterprise JavaBeans

Session beans

Singleton session beans

Asynchronous method calls

Message-driven beans

Transactions in Enterprise JavaBeans

Enterprise JavaBeans life cycle

EJB timer service

EJB security

Summary

Contexts and Dependency Injection

Named beans

Dependency injection

Qualifiers

Named bean scopes

Summary

Web Services with JAX-WS

Developing web services with JAX-WS

Exposing EJBs as web services

Summary

RESTful Web Services with Jersey and JAX-RS

Introduction to RESTful web services and JAX-RS

Developing a simple RESTful web service

Developing a RESTful web service client

Query and path parameters

Summary

Sending E-mails from Java EE Applications

Sending E-mails from Java EE Applications

Sending E-mails from Java EE Applications

IDE Integration

IDE Integration

IDE Integration

Index