Free Sample
+ Collection

Java EE 5 Development using GlassFish Application Server


The complete guide to installing and configuring the GlassFish Application Server and developing Java EE 5 applications to be deployed to this server
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847192608
Paperback424 pages

About This Book

  • Concise guide covering all major aspects of Java EE 5 development
  • Uses the enterprise open-source GlassFish application server
  • Explains GlassFish installation and configuration
  • Covers all major Java EE 5 APIs


Who This Book Is For

This book is aimed at Java developers wishing to become proficient with Java EE 5, who are expected to have some experience with Java  and to have developed and deployed applications in the past, but need no previous knowledge of Java EE or J2EE. It teaches the reader how to use GlassFish to develop and deploy applications.

Table of Contents

Chapter 1: Getting Started with GlassFish
Overview of Java EE and GlassFish
Obtaining GlassFish
Installing GlassFish
Verifying the Installation
GlassFish Domains Explained
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
Persisting Application Data across Requests
Chapter 3: JavaServer Pages
Introduction to JavaServer Pages
Developing Our First JSP
JSP Implicit Objects
JSPs and JavaBeans
Unified Expression Language
Chapter 4: Database Connectivity
The CustomerDB Database
Entity Relationships
Final Notes
Chapter 5: JSP Standard Tag Library
Core JSTL Tag Library
Formatting JSTL Tag Library
SQL JSTL Tag Library
XML JSTL Tag Library
JSTL Functions
Chapter 6: JavaServer Faces
Developing Our First JSF Application
Custom Data Validation
Customizing JSF's Default Messages
Integrating JSF and JPA
Chapter 7: Java Messaging Service
Setting Up GlassFish for JMS
Message Queues
Message Topics
Chapter 8: Security
Security Realms
Chapter 9: Enterprise JavaBeans
Session Beans
Message-Driven Beans
Transactions in Enterprise Java Beans
Enterprise JavaBean Life Cycles
EJB Timer Service
EJB Security
Chapter 10: Web Services
Developing Web Services with JAX-WS
Chapter 11: Beyond Java EE

What You Will Learn

  • How to install and configure GlassFish
  • How to develop web applications using JSPs, JSTL, Servlets, and JSF
  • How to develop applications that interact with relational database systems through the Java Persistence API and JDBC
  • How to develop applications using EJB 3, including how to take advantage of container-managed transactions and EJB declarative security through annotations
  • How to implement messaging applications through the JMS API
  • How to secure Java EE applications via the JAAS API, including how to implement custom security realms
  • How to build applications using frameworks that build on top of the Java EE 5 specification, including Seam, Facelets, and Ajax4jsf


In Detail

GlassFish is a free, open-source Java EE 5-compliant application server that is quickly gaining massive popularity.

This book explains GlassFish installation and configuration, and then moves on to Java EE 5 application development, covering all major Java EE 5 APIs.

Chapter 1 provides an overview of Glassfish, including how to install it, configure it, and verify the installation.

Chapter 2 covers how to develop server-side web applications using the Servlet API.  

Chapter 3 explains how to develop web applications using JavaServer Pages (JSPs), including how to develop and use JSP custom tags.

Chapter 4 discusses how to develop Java EE applications that interact with a relational database system through the Java Persistence API (JPA) and through the Java Database Connectivity API (JDBC).

Chapter 5 explains how to use the JSP Standard Tag Library (JSTL) when developing JavaServer Pages.

Chapter 6 covers how to develop applications using the JavaServer Faces (JSF) component framework to build web applications.

Chapter 7 explains how to develop messaging applications though the Java Messaging Service (JMS) API.

Chapter 8 covers securing J2EE applications through the Java Authentication and Authorization Service (JAAS).

Chapter 9 discusses how to develop Enterprise Java Beans that adhere to the EJB 3 specification.

Chapter 10 explains how to develop and deploy web services that conform to the JAX-WS 2.1 specification.

Chapter 11 covers frameworks that build on top of the Java EE 5 specification, including Seam, Facelets, and Ajax4Jsf.

The appendices cover some of the advanced features of the GlassFish server.


Read More