X

Devoxx 2011: Java EE 6 Hands-on Lab Delivered

Guest Author


src="//cdn.app.compendium.com/uploads/user/e7c690e8-6ff9-102a-ac6d-e4aebca50425/f4a5b21d-66fa-4885-92bf-c4e81c06d916/Image/fdfc58883ea436984374396f46a8f03c/devoxx_2011_banner.png">



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
href="http://blogs.oracle.com/arungupta/resource/javaee6-hol-2012.pdf">OTN
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
instructions.

Here is the complete Table of Contents:



href="http://blogs.oracle.com/arungupta/resource/javaee6-hol-nov2011.pdf">alt=""
src="//cdn.app.compendium.com/uploads/user/e7c690e8-6ff9-102a-ac6d-e4aebca50425/f4a5b21d-66fa-4885-92bf-c4e81c06d916/Image/d16c8e397017de2cfc696ee19556e4e4/javaee6_hol_toc_devoxx11.png"
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,
205232,
205248,
205256).



src="//cdn.app.compendium.com/uploads/user/e7c690e8-6ff9-102a-ac6d-e4aebca50425/f4a5b21d-66fa-4885-92bf-c4e81c06d916/Image/baeb51e0e8b909e2a2b90e5706e596ad/dscn0849_1.jpg">







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
Devoxxians!



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.