Java EE 5 Development using GlassFish Application Server

David R. Heffelfinger

eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$16.49 save 45%!
Print book: $49.99
$44.99 save 10%!
Print + eBook bundle: $79.98
Includes free access to the book on PacktLib
$49.49 save 38%!
Free Shipping! UK, US, Europe and selected countries in Asia.
This book can also be purchased from:
Overview
Table of Contents
The Author
Reviews
Downloads
  • 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

 

Book Details

Language : English
Paperback : 424 pages [ 235mm x 191mm ]
Release Date : October 2007
ISBN : 1847192602
ISBN 13 : 978-1-847192-60-8
Author(s) : David R. Heffelfinger
Topics and Technologies : All Books, Java, Open Source


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
    • GlassFish Domains Explained
      • Creating Domains
      • Deleting Domains
      • Stopping a Domain
      • Setting Up Database Connectivity
      • Setting Up Connection Pools
    • Summary
  • 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 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
    • 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
  • 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
    • Summary
  • 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
  • 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
  • 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

David R. Heffelfinger

David Heffelfinger is the Chief Technology Officer of Ensode Technology, LLC, a software consulting firm based in the greater Washington DC area. He has been architecting, designing and developing software professionally since 1995 and has been using Java as his primary programming language since 1996. He has worked on many large scale projects for several clients including the US Department of Homeland Security, Freddie Mac, Fannie Mae, and the US Department of Defense. He has a Masters degree in Software Engineering from Southern Methodist University. David is editor in chief of Ensode.net (http://www.ensode.net), a website about Java, Linux, and other technology topics.
Sorry, we don't have any reviews for this title yet.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Find your book in our support section to find errata and to download code samples.

What you will learn from this book

  • 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

 

Special Offers

PacktLib gives you access to this and 600+ other titles with an annual or monthly subscription.

Annual subscription:

$220.00 per annum

Monthly subscription:

$21.99 per month

Buy 2 eBooks
and Get 50% Off
+
Buy Java EE 5 Development using GlassFish Application Server with Java EE 6 with GlassFish 3 Application Server and get 50% off both the eBooks.
Just add both the eBooks to your shopping cart and enter dha5egeb in the 'Enter Promotion Code' field. Click 'Add Promotion Code' and the discount will be applied.
View Best Selling eBook offers

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.

This book is a Developer’s Guide, covering the ins and outs of developing Java EE 5 applications deployed to the standards-compliant, high performance GlassFish application server.

Visit the Free Online Edition and read the full table of contents including summaries of each chapter and also chapter 6 in full.

Approach

The book aims to speed up the reader in Java EE 5 development. All major Java EE 5 APIs and the details of the GlassFish server are covered followed by examples of its use.

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.

Are there no books available that are right for you at the moment? How about signing up to our newsletter to keep up to date?
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Sort A-Z