Java Reference
In-Depth Information
Click on
Finish
. An
application.xml
gets added to the
META-INF
directory of the
Model
project. In the
application.xml,
define an EJB module for the EJB
JAR
file.
and a web module for the client
WAR
file. The
application.xml
is listed next:
<?xml version = '1.0' encoding = 'windows-1252'?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.
sun.com/xml/ns/javaee/application_5.xsd"
version="5" xmlns="http://java.sun.com/xml/ns/javaee">
<display-name></display-name>
<module>
<ejb>ejb3.jar</ejb>
</module>
<module>
<web>
<web-uri>weblogic.war</web-uri>
<context-root>weblogic</context-root>
</web>
</module>
</application>
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.
Search WWH ::
Custom Search