Java EE Web Tutorial

This tutorial demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application using GlassFish, ObjectDB and JPA.

Since this web application uses Java EE 6 EJB (session beans) it requires a full Java EE 6 application server, such as GlassFish 3.0.1 or JBoss AS 6. If you need a web application that can run on a simple servlet container (such as Tomcat or Jetty) see the JPA Web App Tutorial.

The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form:

Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in an ObjectDB database.

This tutorial is available in the following versions:

In addition the demonstrated application is available as a Maven project: