Review the project layout component source files

You will use Ant project builds the EJB-JAR from the provided Java source files and the deployment descriptor. Source files are beneath the src directory in package subdirectory com/sybase/easerver/tutorials/ejb. The master copy of the deployment descriptor is manifest/META-INF/ejb-jar.xml.

Table 6-1 describes the source files for the Glossary entity bean, which interacts with the database to manage a glossary of terms and definitions:

Table 6-1: Glossary entity bean source files

File

Purpose

Glossary.java

The remote interface

GlossaryHome.java

The home interface

GlossaryBean.java

Implements the component methods

Table 6-2 describes the source files for the Query stateless session bean, which implements methods to lookup definitions by calling the Glossary bean.

Table 6-2: Query stateless session bean source files

File

Purpose

Query.java

The remote interface

QueryHome.java

The home interface

QueryBean.java

Implements the component methods

The Ant project, defined by build.xml, does the following:

If you wish, you can review the Ant commands to perform these tasks in the definition of the ejbjar target in build.xml. However, you don’t need to know Ant to run the tutorial. Documentation for Ant can be found on the Apache Web site.