You can assemble a web services-enabled web application archive (WAR) file into an enterprise archive (EAR) file with an assembly tool.
You can assemble Java-based web services modules with assembly tools provided with WebSphere® Application Server.
Assemble a web services-enabled WAR file into an EAR file using the steps provided in this task section.
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>
In this information ...Related concepts
| IBM Redbooks, demos, education, and more(Index) |