Chapter 3. About the Example Applications

Chapter 3. About the Example Applications

3.1. Install Ant

In this guide, we make use of a simple web application to show the use of JSF-EJB3 components. We then illustrate how to use Seam to integrate the JSF and EJB3 components. The example applications (source code) come with this guide and you can find them located in the JBOSS_DIST/doc/examples directory. You can also download the sample applications from http://www.redhat.com/docs/manuals/jboss. We use two examples in this book:

If you installed the documentation on your hard drive, then the first example can be found in the JBOSS_DIST/doc/examples/jsfejb3 directory (if you download the examples the path is: gettingstarted/jsfejb3). We will see how to build this example using the build.xml file present here and also how to deploy the application. We will also cover in detail the workings of the .java, .xml and .properties files.

The second example used in this guide can be found in the JBOSS_DIST/doc/examples/seamejb3 directory. Using a simple "TODO" application we will illustrate how Seam ties together the database, the web interface and the EJB3 business logic in a web application. We will use the build.xml file present here to compile and build our Seam application.

Within the JBOSS_DIST/doc/examples/<seamejb3|jsfejb3> directory, you will find the following sub-directories: