-
Book Overview & Buying
-
Table Of Contents
EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g
In this section we shall compile the EJB and Servlet classes, package the EJB classes in a JAR file, package the servlet class and the JSPs in a WAR file, and package the JAR and WAR files in an EAR file. We shall be using an Apache Ant build.xml script to compile and package the EJB 3.0 Ajax application.
Create a build.xml in the Model project by selecting the Model project node in the Application navigator and selecting File|New. In the New Gallery window, select General|Ant in Categories and Empty Buildfile in Items. Click on OK:

In the Create Ant Buildfile window, specify the File Name as build.xml and click on OK:

In the build.xml, specify properties for the different directory paths used for compiling and deploying the EJB 3.0 classes, the client servlet, and the JSPs. Specify a path element for the different JAR files in the classpath. Specify the targets listed in the following table:
|
Target |
Description |
|---|---|
|
prepare... |
Change the font size
Change margin width
Change background colour