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 experts perspective on enterprise Java technologies.
What youll 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
- Java EE 6 at a Glance
- Java Persistence
- Object-Relational Mapping
- Managing Persistent Objects
- Callbacks and Listeners
- Enterprise Java Beans
- Session Beans and the Timer Service
- Callbacks and Interceptors
- Transactions and Security
- JavaServer Faces
- Pages and Components
- Processing and Navigation
- Sending Messages
- SOAP Web Services
- RESTful Web Services
- Source Code/Downloads
- Errata
-
If you think that you've found an error in this book, please let us know about it. 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
<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&nf=1&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"









