Assembling a Web services-enabled EJB JAR into an EAR file

 

Overview

Before assembling a Web services-enabled enterprise archive (EAR) file Assemble a Web services-enabled EJB Java archive (JAR) file.

 

Overview

You can assemble a Web services-enabled EAR file with the Assembly Toolkit. The Assembly Toolkit replaces the Application Assembly Tool (AAT). It is one of the tools available with the Application Server Toolkit product.

To assemble a Web services-enabled EAR file:

  1. Start the Assembly Toolkit.

  2. Assemble the Web services-enabled JAR file into an EAR file. The EAR file can contain an enterprise bean or application client JAR files, WAR files, Web applications, and metadata describing the applications or application.xml files.

 

Results

A Web services-enabled EAR file.

 

Example

application.xmlAddressBook.jar AddressBook.ear

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

<?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>

 

What to do next

Enable the EAR file. Then, deploy the EAR file into WebSphere Application Server.


Related tasks
Starting the Assembly Toolkit
Assembling a Web services-enabled EJB JAR file
Assembling a Web services-enabled EJB JAR file when starting from Java code
Assembling Web services-enabled EJB JAR file when starting from WSDL
Enabling a Web services-enabled EAR file