Deploying the EJB 3 application to WebLogic Server
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.
Creating a build file
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... |