Assembling a Web services-enabled WAR into an EAR file

Before assembling a Web services-enabled EAR fileAssemble a Web services-enabled Web archive (WAR) file.

This topic explains how to assemble a Web services-enabled WAR file into and EAR file using the Assembly Toolkit. The Assembly Toolkit replaces the Application Assembly Tool (AAT) and is one of the tools available with the Application Server Toolkit product.

To assemble a Web services-enabled WAR file into an EAR file...

  1. Start the Assembly Toolkit.

  2. Assemble the Web services-enabled WAR file into an EAR file.Now assemble the EAR file that contains the JAR or WAR files. The EAR file can contain an enterprise bean or application client JAR files; web application (.war)s or WAR files; and metadata describing the applications or application.xml files.

A Web services-enabled EAR file.

 

Usage Scenario

In the following example, there is an application.xml deployment descriptor packaged with a Web services-enabled JAR file called AddressBook.jar that is packaged into an EAR file called AddressBook.ear. The EAR file contains

META-INF/MANIFEST.MF
META-INF/application.xml
AddressBook.war

An example of the application.xml deployment descriptor is as follows

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" 
"http://java.sun.com/dtd/application_1_3.dtd">
    <application id="Application_ID">
        <display-name>AddressBook</display-name>
        <description>AddressBook Example from Java bean</description>
        <module id="WebModule_1">
            <web>
                <web-uri>AddressBook.war</web-uri>
                <context-root>/AddressBook</context-root>
            </web>
        </module>
    </application>

Deploy Web services based on Web Services for J2EE.

 

See Also

Assembling a Web services-enabled WAR file
Assembling a Web services-enabled WAR file when starting from Java code
Assembling a Web services-enabled WAR file when starting from WSDL