Beginning Java EE 6 with GlassFish 3

2nd Edition

By Antonio Goncalves

Beginning Java EE 6 with GlassFish 3 Cover Image

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

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

Related Titles

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.

Errata

Please Login to submit errata.

On page source code for chapter 02:
the pom.xml has
<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>javax.persistence</artifactId>
<version>${javax.persistence-version}</version>
<scope>provided</scope>
</dependency>
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
<repositories>
<repository>
<id>EclipseLink Repo</id>
<url>http://www.eclipse.org/downloads/download.php?r=1&amp;nf=1&amp;file=/rt/eclipselink/maven.repo</url>
</repository>
</repositories>
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"