WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Assembling a Web services-enabled WAR into an EAR file

This task explains how to assemble a Web services-enabled Web archive (WAR) file into an enterprise archive (EAR) file with an assembly tool.

Before you begin

You can assemble Web Services for J2EE modules with assembly tools provided with WebSphere Application Server.

You must configure the assembly tool before you can use it.

Why and when to perform this task

Assemble a Web services-enabled WAR file into an EAR file using the steps provided in this task section.

Steps for this task

  1. Start the assembly tool. The assembly tools, Application Server Toolkit (AST) and Rational Web Developer, provide a graphical interface for developing code artifacts, assembling the code artifacts into various archives (modules) and configuring related Java 2 Platform, Enterprise Edition (J2EE) Version 1.2, 1.3 or 1.4 compliant deployment descriptors.
  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 applications or WAR files; and metadata describing the applications or application.xml files.

Result

A Web services-enabled EAR file.

Example

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>

What to do next

Deploy Web services.



Related tasks
Assembling a WAR file that is enabled for Web services from Java code
Assembling a Web services-enabled WAR file from a WSDL file

Task topic    

Terms of Use | Feedback

Last updated: Mar 17, 2005 4:28:29 AM CST
http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/twbs_assembearwar.html

© Copyright IBM Corporation 2004, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)