Apress NBA

Beginning Java EE 6 with GlassFish 3

2nd Edition

By Antonio Goncalves

  • eBook Price: $34.99
Buy eBook Buy Print Book
Beginning Java EE 6 Platform with GlassFish 3, Second Edition is one of the first tutorial books on the final version of the Java EE 6 platform. Step by step and easy to follow, this book describes the Java EE 6 features and how to use them.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-2889-9
  • User Level: Beginner to Intermediate
  • Publication Date: August 23, 2010
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Kubernetes Microservices with Docker
  • Learning Groovy
  • Pro Marketing and Search Engine Optimization
  • Practical D3.js
Full Description

Java Enterprise Edition (Java EE) continues to be one of the leading Java technologies and platforms from Oracle (previously Sun). Beginning Java EE 6 Platform with GlassFish 3, Second Edition is this first tutorial book on the final version of the Java EE 6 Platform.

Step by step and easy to follow, this book describes many of the Java EE 6 specifications and reference implementations, and shows them in action using practical examples. This book uses the new version of GlassFish 3 to deploy and administer the code examples.

Written by an expert member of the Java EE 6 specification request and review board in the Java Community Process (JCP), this book contains the best information possible, from an expert’s perspective on enterprise Java technologies.

What you’ll learn

  • Get started with the final version of the Java EE 6 Platform.
  • Explore and use the EJB 3.1 and JPA 2.0 APIs from entities to session beans to message driven beans, and more.
  • Discover web tier development APIs including JSPs, JSTL, and Expression Language, and especially the new JSF 2.0 and Facelets.
  • Uncover the web services, RESTful services, and more available in Java EE 6.
  • Create dynamic user interfaces for your enterprise and transactional Java applications.

Who this book is for

This book is for advanced Java programmers as well as Java EE 6 beginners. Architects will also find information about how to layer their Java EE applications.

Table of Contents

Table of Contents

  1. Java EE 6 at a Glance
  2. Java Persistence
  3. Object-Relational Mapping
  4. Managing Persistent Objects
  5. Callbacks and Listeners
  6. Enterprise Java Beans
  7. Session Beans and the Timer Service
  8. Callbacks and Interceptors
  9. Transactions and Security
  10. JavaServer Faces
  11. Pages and Components
  12. Processing and Navigation
  13. Sending Messages
  14. SOAP Web Services
  15. RESTful Web Services
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.

On page source code for chapter 02:
the pom.xml has
but if <scope>provided</scope> is not removed, when attempting to run with mvn exec:java ....
you will get

Caused by: java.lang.ClassNotFoundException: javax.persistence.Persistence

I also had to put in value of <version>2.2.1</version>
for <artifactId>eclipselink</artifactId>
and add a
<id>EclipseLink Repo</id>
so it could be downloaded, not hosted by maven repo.

On page 56:

mvn exec:java -Dexec.mainClass="com.apress.javaee6.chapter02.Main"

should be

mvn exec:java -Dexec.mainClass="org.beginningee6.book.chapter02.Main.Main"

On page 56:

During execution

mvn exec:java -Dexec.mainClass="com.apress.javaee6.chapter02.Main"

I get an error
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.Short

If I remove field "private boolean illustrations;" from Book.class then the code is successfully executed.

On page 83 in pdf:
mvn exec:java -Dexec.mainClass="com.apress.javaee6.chapter02.Main"

should be

mvn exec:java -Dexec.mainClass="org.beginningee6.book.chapter02.Main"


    1. PHP Objects, Patterns, and Practice


      View Book

    2. Beginning Android 3D Game Development


      View Book

    3. Troubleshooting Oracle Performance


      View Book

    4. Beginning Amazon Web Services with Node.js


      View Book