Assemble a Web services-enabled EAR file
Use the AAT to assemble the Web services-enabled JAR or WAR file into an EAR file. The EAR file can contain an enterprise bean or application client JAR files; Web applications or WAR files; and metadata that describes the applications or application.xml files.
Example
In this 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 these files:
- META-INF/MANIFEST.MF
- META-INF/application.xml
- AddressBook.jar
This is the content of the application.xml deployment descriptor:
<?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>AddressBookJ2WEE</display-name> <description>AddressBook EJB Example from Java</description> <module id="EjbModule_1"> <ejb>AddressBook.jar</ejb> </module> </application>