Devoxx 2011: Java EE 6 Hands-on Lab Delivered

Guest Author


I, along with Alexis's help, delivered a Java EE 6 hands-on lab to a
packed room of about 40+ attendees at Devoxx 2011. The lab was derived from the
Developer Days 2012 version but added lot more content to
showcase several Java EE 6 technologies. The problem statement from
the lab document states:

This hands-on lab builds a
typical 3-tier Java EE 6 Web application that retrieves customer
information from a database and displays it in a Web page. The
application also allows new customers to be added to the database
as well. The string-based and type-safe queries are used to query
and add rows to the database. Each row in the database table is
published as a RESTful resource and is then accessed
programmatically. Typical design patterns required by a Web
application like validation, caching, observer, partial page
rendering, and cross-cutting concerns like logging are explained
and implemented using different Java EE 6 technologies.

The lab covered Java Persistence API 2, Servlet 3, Enterprise
JavaBeans 3.1, JavaServer Faces 2, Java API for RESTful Web Services
1.1, Contexts and Dependency Injection 1.0, and Bean Validation 1.0
over 47 pages of detailed href="http://blogs.oracle.com/arungupta/resource/javaee6-hol-nov2011.pdf">self-paced

Here is the complete Table of Contents:

style="border: 2px solid; width: 600px; height: 425px; border:
2px solid;">

The lab can be downloaded href="http://blogs.oracle.com/arungupta/resource/javaee6-hol-nov2011.pdf">from
here and requires only NetBeans IDE "All" or "Java EE"
version, which includes GlassFish anyway. All the feedback received
from the lab has been incorporated in the instructions and bugs
filed (Updated href="http://netbeans.org/bugzilla/show_bug.cgi?id=49559">49559,


80% of the attendees could easily complete the lab and some even
completed in much less than 3 hours. That indicates that either more
content needs to be added to the lab or the intellectual level of
the attendees at the conference was pretty high. I think the lab has
enough content for 3 hours but we moved at a much more faster pace
so I conclude on the latter. Truly a joy to conduct a lab to 40

Another related lab that might be handy for folks is "Develop,
Deploy, and Monitor your Java EE 6 applications using GlassFish 3.1
Cluster". It explains how:
  • Create a 2-instance GlassFish cluster
  • Front-end with a Web server and a load balancer
  • Demonstrate session replication and fail over
  • Monitor the application using JavaScript

The complete href="http://blogs.oracle.com/arungupta/resource/javaone2011/19120-lab-instructions.pdf">lab
instructions and href="http://blogs.oracle.com/arungupta/resource/javaone2011/19120-app.zip">source
code are available and you can try them.

I plan to continue evolving the contents for the Java EE 6 hands-on
lab to cover more technologies and features and will announce them
on this blog. Let me know on what else would you like to see in the
future versions.

Join the discussion

Comments ( 3 )
  • Binh Nguyen Saturday, November 19, 2011

    You're my Idol!

  • guest Monday, November 21, 2011

    Thanks for the lab!

    Was surprised to see myself 'in action' (leftmost on the first picture)...

  • Paul Sidewalk Tuesday, November 22, 2011

    Arun is one of the better example of altruism in the TI community . His dedication to teach the developers is fantastic !!! Thank you very much, Arun.

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.