JBoss.org Community Documentation

Chapter 11. Sample JSF-EJB3 Application

11.1. Data Model
11.2. JSF Web Pages
11.3. EJB3 Session Beans
11.4. Configuration and Packaging
11.4.1. Building The Application
11.4.2. Configuration Files
11.5. The Database
11.5.1. Creating the Database Schema
11.5.2. The HSQL Database Manager Tool
11.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: