If you find these tutorials useful, Please consider making a donation.

TheFrugalComputerGuy.png
TheFrugalComputerLogo.png

J2EE Registration Project - Group 1










Video 1 - Project Summary

This is the first of a 5 part series that will create a simple Java Enterprise Edition (J2EE) project using Netbeans and Glassfish.

There are four tiers – a Client Tier, Web Tier, Business Tier, and Enterprise Tier and this project will put something in each of these tiers.

The task is to have a user register their information into a web page. This web page will update a database, then show a confiramtion page that the client is registered. There will also be another web page that will display all the information on the table.

The final completed project is demonstrated starting with the registration page, a new person is successfully registered displaying the confirmation page, then we look at the web page that displays the information on the registration database table and we see the new person was added successfully.










Video 2 - Creating the Database

We create the database for our project (this will be in the Enterprise Tier).

We first show we are using the Netbeans IDE 8.0.2 and we look at what plugins I have installed before we start.

We show we then see I am using the Glassfish 4.1 server and we start that.

We create a database then we create a table on that database. We then make a backup of the structure of that table using the Grab Structure feature in Netbeans and we delete the table.

We then recreate the table (using the recreate feature of Netbeans) and before recreating the table, we want to edit the table script. We then add the code to auto increment the primary key for this table and we recreate the table.

We then add 2 records showing the auto increment works for the table and timestamp is auto-populated.

The last thing we do in the video is we create the Java EE – Enterprise Application.










Video 3 - Creating the EJBs

We create the Enterprise Java Beans in the Business Tier of the project.

We right click on the RegistrationProject-ejb and create a new – other – Persistence - Entity Classes from Database. This will create our java file with the queries to select the data from the database as well as the constraint annotations and the getter and setter methods.

Then we again right click on the RegistrationProject-ejb module and select new – other – Enterprise JavaBeans – Session Bean for Entity Classes. We will create a local interface for this bean. This will create three more java files the abstractfacade, the facade, and the facadelocal.

The facadelocal program will be the interface program we will connect to from our servlets to send and receive data on the database.