+

Search Tips   |   Advanced Search

Assembling a JAR file that is enabled for Web services from an enterprise bean


We can assemble a Web service-enabled enterprise bean JAR file with an assembly tool using artifacts generated from tooling.

We can assemble Java -based Web services modules with assembly tools provided with WAS. You need the following artifacts that are generated from the WSDL2Java command-line tool to complete this task:

Assemble a Web services-enabled enterprise bean JAR file from Java code by following the actions in the steps for this task section.

 

  1. Start an assembly tool. Read about starting the assembly tool in the Rational Application Developer documentation.

  2. If we have not done so already, configure the assembly tool so that it works on Java EE modules. we need to make sure that the Java EE and Web categories are enabled. Read about configuring the assembly tool in the Rational Application Developer documentation.

  3. Migrate JAR files created with the Assembly Toolkit, Application Assembly Tool or a different tool to the Rational Application Developer assembly tool. To migrate files, import the JAR files to the assembly tool. Read about migrating code artifacts to an assembly tool in the Rational Application Developer documentation.

 

Results

we have the artifacts required to Web service-enable an EJB module for Web services. The artifacts are added to the JAR file. Now you need to configure the deployment descriptors so that we can deploy the Web service into the appserver run time environment.

 

Example

The AddressBook.jar JAR file contains the following files after assembly. The files added in this task are in bold. These files include the WSDL file, the deployment descriptors, and the JAX-RPC mapping file.

META-INF/MANIFEST.MF  META-INF/ejb-jar.xml  addr/Address.class  addr/AddressBook_RI.class  addr/AddressBookBean.class  addr/AddressBookHome.class  addr/Phone.class  addr/StateType.class 


addr/AddressBook.class META-INF/wsdl/AddressBook.wsdl META-INF/ibm-webservices-bnd.xmi META-INF/ibm-webservices-ext.xmi META-INF/webservices.xml META-INF/AddressBook_mapping.xml

 

Next steps

Assemble the EAR file so that we can deploy the EAR file into WAS.


Assembly tools

 

Related tasks


Assembling a Web services-enabled enterprise bean JAR file from a WSDL file
Assemble Web services applications
Assembling an enterprise bean JAR file into an EAR file

 

Related


Artifacts used to develop Web services
WSDL2Java command for JAX-RPC applications