Free Sample
+ Collection

Java EE 6 with GlassFish 3 Application Server

Starting


Learn how to install and configure the GlassFish 3 Application Server with this guide, before moving swiftly on to the ins and outs of developing Java EE 6 applications for Glassfish 3. Suitable for all skill levels.
$29.99
$49.99
RRP $29.99
RRP $49.99
eBook
Print + eBook

Want this title & more?

$16.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 139781849510363
Paperback488 pages

About This Book

  • 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

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.

Table of Contents

Chapter 1: 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
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
Persisting application data across requests
New features introduced in Servlet 3.0
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
Unified Expression Language
JSP XML syntax
Summary
Chapter 4: JSP Standard Tag Library
Core JSTL tag library
Formatting JSTL tag library
SQL JSTL tag library
XML JSTL tag library
JSTL functions
Summary
Chapter 5: Database Connectivity
The CustomerDB database
JDBC
The Java Persistence API
New features introduced in JPA 2.0
Summary
Chapter 6: 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
Chapter 7: Java Messaging Service
Setting up GlassFish for JMS
Message queues
Message topics
Summary
Chapter 8: Security
Security realms
Summary
Chapter 9: 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
Chapter 10: Contexts and Dependency Injection
Named beans
Dependency injection
Qualifiers
Named bean scopes
Summary
Chapter 11: Web Services with JAX-WS
Developing web services with JAX-WS
Exposing EJBs as 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
Developing a RESTful web service client
Query and path parameters
Summary

What You Will Learn

  • 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.

Authors

Read More