Java EE 6 with GlassFish 3 Application Server


Java EE 6 with GlassFish 3 Application Server
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
$25.49
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
$49.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Install and configure the GlassFish 3 Application Server and develop Java EE 6 applications to be deployed to this server
  • Specialize in all major Java EE 6 APIs, including new additions to the specification such as CDI and JAX-RS
  • Use GlassFish v3 application server and gain enterprise reliability and performance with less complexity
  • Clear, step-by-step instructions, practical examples, and straightforward explanations

Book Details

Language : English
Paperback : 488 pages [ 235mm x 191mm ]
Release Date : July 2010
ISBN : 1849510369
ISBN 13 : 9781849510363
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: JSP Standard Tag Library
Chapter 5: Database Connectivity
Chapter 6: JavaServer Faces
Chapter 7: Java Messaging Service
Chapter 8: Security
Chapter 9: Enterprise JavaBeans
Chapter 10: Contexts and Dependency Injection
Chapter 11: Web Services with JAX-WS
Chapter 12: RESTful Web Services with Jersey and JAX-RS
Appendix A: Sending E-mails from Java EE Applications
Appendix B: IDE Integration
Index
  • Chapter 1: Getting Started with GlassFish
    • Overview of Java EE and GlassFish
      • What's new in Java EE 6
        • JavaServer Faces (JSF) 2.0
        • Enterprise JavaBeans (EJB) 3.1
        • Java Persistence API (JPA) 2.0
        • Contexts and Dependency Injection for Java (Web Beans 1.0)
        • Java Servlet API 3.0
        • Java API for RESTful web services (JAX-RS) 1.1
        • Java API for XML-based web services (JAX-WS) 2.2
        • Java Architecture for XML Binding (JAXB) 2.2
      • What's new in GlassFish v3
      • 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
    • GlassFish domains
      • Creating domains
      • Deleting domains
      • Stopping a domain
    • Setting up database connectivity
      • Setting up connection pools
      • Setting up data sources
    • Final notes
    • Summary
  • Chapter 2: 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
      • Request forwarding
      • Response redirection
    • Persisting application data across requests
    • New features introduced in Servlet 3.0
      • Optional web.xml deployment descriptor
        • @WebServlet annotation
        • @WebFilter annotation
        • @WebListener annotation
        • Pluggability
        • Configuring web applications programmatically
        • Asynchronous processing
    • 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
    • JSP XML syntax
    • Summary
  • Chapter 5: 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
    • New features introduced in JPA 2.0
      • Criteria API
      • Bean Validation support
    • Summary
  • Chapter 6: JavaServer Faces
    • Introduction to JSF 2.0
      • Facelets
      • Optional faces-config.xml
      • Standard resource locations
    • Developing our first JSF 2.0 application
      • Facelets
      • Project stages
      • Validation
      • Grouping components
      • Form submission
      • Managed beans
        • Managed bean scopes
      • Navigation
    • Custom data validation
      • Creating custom validators
      • Validator methods
    • Customizing JSF's default messages
      • Customizing message styles
      • Customizing message text
    • Integrating JSF and JPA
    • Ajax enabling JSF 2.0 applications
    • JSF standard components
      • JSF core components
        • The <f:actionListener> tag
        • The <f:ajax> tag
        • The <f:attribute> tag
        • The <f:convertDateTime> tag
        • The <f:convertNumber> tag
        • The <f:converter> tag
        • The <f:event> tag
        • The <f:facet> tag
        • The <f:loadBundle> tag
        • The <f:metadata> tag
        • The <f:param> tag
        • The <f:phaseListener> tag
        • The <f:selectItem> tag
        • The <f:selectItems> tag
        • The <f:setPropertyActionListener> tag
        • The <f:subview> tag
        • The <f:validateBean> tag
        • The <f:validateDoubleRange> tag
        • The <f:validateLength> tag
        • The <f:validateLongRange> tag
        • The <f:validateRegex> tag
        • The <f:validateRequired> tag
        • The <f:validator> tag
        • The <f:valueChangeListener> tag
        • The <f:verbatim> tag
        • The <f:view> tag
        • The <f:viewParam> tag
      • JSF HTML components
        • The <h:body> tag
        • The <h:button> tag
        • The <h:column> tag
        • The <h:commandButton> tag
        • The <h:commandLink> tag
        • The <h:dataTable> tag
        • The <h:form> tag
        • The <h:graphicImage> tag
        • The <h:head> tag
        • The <h:inputHidden> tag
        • The <h:inputSecret> tag
        • The <h:inputText> tag
        • The <h:inputTextarea> tag
        • The <h:link> tag
        • The <h:message> tag
        • The <h:messages> tag
        • The <h:outputFormat> tag
        • The <h:outputLabel> tag
        • The <h:outputLink> tag
        • The <h:outputScript> tag
        • The <h:outputStylesheet> tag
        • The <h:outputText> tag
        • The <h:panelGrid> tag
        • The <h:panelGroup> tag
        • The <h:selectBooleanCheckbox> tag
        • The <h:selectManyCheckbox> tag
        • The <h:selectManyListbox> tag
        • The <h:selectManyMenu> tag
        • The <h:selectOneListbox> tag
        • The <h:selectOneMenu> tag
        • The <h:selectOneRadio> tag
      • Additional JSF component 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
        • The 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
    • Singleton session beans
    • Asynchronous method calls
    • Message-driven beans
    • Transactions in Enterprise JavaBeans
      • Container-managed transactions
      • Bean-managed transactions
    • Enterprise JavaBeans life cycle
      • Stateful session bean life cycle
      • Stateless session bean life cycle
      • Message-driven bean life cycle
    • EJB timer service
      • Calendar-based EJB timer expressions
    • EJB security
      • Client authentication
    • Summary
  • Chapter 11: Web Services with JAX-WS
    • 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 12: RESTful Web Services with Jersey and JAX-RS
    • Introduction to RESTful web services and JAX-RS
    • Developing a simple RESTful web service
      • Configuring the REST resources path for our application
        • Configuring via web.xml
        • Configuring via the @ApplicationPath annotation
      • Testing our web service
      • Converting data between Java and XML with JAXB
    • Developing a RESTful web service client
    • Query and path parameters
      • Query parameters
        • Sending query parameters via the Jersey client API
      • Path parameters
        • Sending path parameters via the Jersey client API
    • 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

- 2 submitted: last submission 03 Feb 2014

Errata type: Technical  Errata Page: 335

 

The following sentence:

Notice that it implements an interface called SimpleSession.

Should be replaced with:

Session Beans that need to be invoked remotely need a corresponding remote business interface.

Errata type: Technical  Errata page: 342

 

 The sentence is:
We then provide a setter method for the bean's clients to call.


Should be:

We then provide a getter method for the beans's clients to call.

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 6 with GlassFish 3 Application Server +    Java EE Development with Eclipse =
50% Off
the second eBook
Price for both: £27.35

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

What you will learn from this book

  • Install Glassfish and deploy Java EE applications
  • Develop, configure, package and deploy servlets
  • Learn the processing of HTML Forms
  • Develop Java Server Pages and get to know implicit JSP objects
  • Get to know all the JSTL (JSP Standard Tag Library) tag libraries
  • Manage data from a database through Java Database Connectivity (JDBC) API and the Java Persistence API (JPA)
  • Learn more about the newly introduced features of JPA 2.0
  • Develop JSF 2.0 applications learn how to customize them
  • Set up Glassfish for Java Messaging (JMS) API and understand the working of message queues and message topics
  • Use the Context and Dependency Injection (CDI) API to integrate application layers
  • Study the SOAP based web service development using the JAX-WS specification
  • Learn more about the Restful web service development using the JAX-RS specification

In Detail

GlassFish is a free, open source, production ready application server. It is the environment's reference implementation and the first Enterprise Java server to implement Java EE6. Although GlassFish server delivers a flexible, lightweight and extensible Java EE 6 platform, it can be challenging to get beyond the basics and develop Java applications deployed to GlassFish 3 application server.

This book takes an in-depth look at all of the major new features in Glassfish 3 and how it differs from previous Glassfish versions. This book explains GlassFish installation and configuration, and then moves on to Java EE 6 application development, covering all major Java EE 6 APIs. It is a handy guide for the advanced Java programmers as well as Java EE 6 beginners.

This book begins with the installation of Glassfish 3 and deploying Java applications. It also explains how to develop, configure, package and deploy servlets. We will also learn the processing of HTML Forms. As we move on, we will develop Java Server Pages and get to know implicit JSP objects. We will get to know all the JSTL (JSP Standard Tag Library) tag libraries. This book gives us a better understanding on how to manage data from a database through Java Database Connectivity (JDBC) API and the Java Persistence API (JPA). We will also learn more about the newly introduced features of JPA 2.0 and develop JSF 2.0 applications learn how to customize them. We then set up Glassfish for Java Messaging (JMS) API and understand the working of message queues and message topics. Later, we use the Context and Dependency Injection (CDI) API to integrate application layers and study the SOAP based web service development using the JAX-WS specification. Finally, we learn more about the Restful web service development using the JAX-RS specification.

The book covers the various Java EE 6 conventions and annotations that can simplify enterprise Java application development. The latest versions of the Servlet, JSF, JPA, EJB and JAX-WS specifications are covered, as well as new additions to the specification such as JAX-RS and CDI.

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

Approach

This book is a practical guide with a very user-friendly approach. It aims to speed up the reader in Java EE 6 development. All major Java EE 6 APIs and the details of the GlassFish 3 server are covered followed by examples of its use.

Who this book is for

If you are a Java developer and wish to become proficient with Java EE 6, then this book is for you. You 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. You will also learn how to use GlassFish 3 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