Java Tutorial - Java Scipt : Setup for a Test Drive

Java Tutorial - Java Scipt :

Setup for a
Test Drive

Figure 13.1 shows an overview of the platform components that we will exercise in this example. We will start building our example from the bottom tier or “back end” and work our way up to the middle and, in Chapter 14, the front end. This is a common approach in enterprise system development because often a number of back-end components already exist. This approach allows us to start with the domain model that may already exist in our enterprise environment and move forward. In this chapter, we are developing the component, connection, and enterprise tiers that make up the middle and back end, as shown in the figure. The steps we will take to create this example are:

1. Create the database and tables.
2. Connect the EJB container to the database.
3. Create the EJBs.
4. Install and test the EJBs.

In the next chapter, we will show you how to:

·         Create the Struts Action Classes.
·         Create the Struts Java Server Pages.
·         Test the application.
The sample application covered in this chapter assumes that the following platform components have been downloaded and installed:

·     Ant. See Chapter 4.
·     JDBC Driver for MySql. See Chapter 9.
·     MySql database. See Chapter 8.
·     JBoss EJB container. See Chapter 10.