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

Before assembling a Web services-enabled EAR file Assemble a Web services-enabled EJB JAR file.

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 application (.war)s, and metadata describing the applications or application.xml files.

A Web services-enabled EAR file.

 Usage scenarioapplication.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>

Enable the EAR file. Then, deploy the EAR file into WAS.

 

See Also

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