The following books and projects may be helpful to you in understanding this tutorial:
The Java EE 6 Tutorial
The Oracle GlassFish Server documentation set
The NetBeans IDE documentation set