Chapter 4. Sample JSF-EJB3 Application

Chapter 4. Sample JSF-EJB3 Application

4.1. Data Model
4.2. JSF Web Pages
4.3. EJB3 Session Beans
4.4. Configuration and Packaging
4.4.1. Building The Application
4.4.2. Configuration Files
4.5. The Database
4.5.1. Creating the Database Schema
4.5.2. The HSQL Database Manager Tool
4.6. Deploying the Application

We use a simple "TODO" application to show how JSF and EJB3 work together in a web application. The "TODO" application works like this: You can create a new 'todo' task item using the "Create" web form. Each 'todo' item has a 'title' and a 'description'. When you submit the form, the application saves your task to a relational database. Using the application, you can view all 'todo' items, edit/delete an existing 'todo' item and update the task in the database.

The sample application comprises the following components: