Java EE 5 Development using GlassFish Application Server


Java EE 5 Development using GlassFish Application Server
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$16.50
save 45%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$66.49
save 17%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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 : 9781847192608
Author(s) : David R. Heffelfinger
Topics and Technologies : All Books, Application Development, 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.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 1 submitted: last submission 06 Jan 2012

page 39 missing content 30 Apr 08
In the "Packaging the Web Application" section, there is a numbered list of steps to<br />follow, item number 4 states:<br />"4. From the command line, issue the following command from the directory right<br />above WEB-INF: jar cvf simpleapp.war"<br />It should state:<br />"4. From the command line, issue the following command from the directory right<br />above WEB-INF: jar cvf simpleapp.war *"<br />The asterisk is missing.<br />
 
page 39 Typo 02 Apr 09
In the last line on page 39 there needs to be a space before the last dot. This is<br />because the last dot is not a full-stop but is part of the jar-command (means "this<br />directory")
 
page 66 Typo 02 Apr 09
Minor spelling error in setAttribute string text examples - spelling is "across", not<br />"accross". No impact to code execution.
 
page 111 Mising unitName 08 Jan 08
@PersistenceUnit is missing unitName.<br />It is:<br />@PersistenceUnit(unitName="customerPeristenceUnit")<br />
 
page 135 Typo 08 May 09
Line 2: "combination of two or more rows is used as the table's primary key". must be<br />"combination of columns".<br />
 
page 161 Code 02 Apr 09
The tag is set to the wrong database from the other examples. <br />The url should be:<br />url="jdbc:derby://localhost:1527/customerDB"
 
page 168 Code 02 Apr 09
It has an accent instead of a single quote in front of Kevin.<br />it should read:<br />The loop has the tag terminated incorrectly. <br />It should be: ${fn:toUpperCase(currentName)}
 
page 188 Code 02 Apr 09
if (!StringUtils.isAlphaSpace((String)value)<br />This will allow a space in the validated data, this is not what is supposed to<br />happen.<br />The correct line should be:<br />if (!StringUtils.isAlpha((String)value)
 
page 307 Typo 02 Apr 09
The paragraph after the code example incorrectly identifies the parameter of the<br />method as an ArrayList. It is not an ArrayList, but the generified interface List.

Sample chapters

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

Frequently bought together

Java EE 5 Development using GlassFish Application Server +    Applying and Extending Oracle Spatial =
50% Off
the second eBook
Price for both: $45.60

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

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

 

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.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
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