Operating Systems: i5/OS
Personalize the table of contents and search results
Completing the EJB implementation
This task explains how to complete the Enterprise JavaBeans (EJB)
implementation.
Develop EJB implementation templates and bindings from a WSDL
file. The deployment descriptor templates that are generated from a
Web Services Description Language (WSDL) file are required to complete the
EJB implementation in the Web services development process.
Overview
When you complete the EJB implementation, you are assembling an
enterprise bean Java archive (JAR) file that contains the EJB and supporting
classes created from a WSDL file.
Complete the EJB implementation by following
the steps provided in this task section.
Procedure
- Inspect the EJB remote interface template, portType_RI.java.
If necessary, modify the template. The value portType is the
name of the <wsdl:portType> element in the WSDL file.
- Inspect the portTypeHome.java EJB home interface
template. If necessary, modify the template.
- Edit the bindingImpl.java EJB implementation template.
Where binding is the name of the <wsdl:binding> element
in the WSDL file.
- Complete the implementation of the methods in the template.
- (Optional) Make changes if necessary.
- (Optional) Change the class name if the binding name is not
acceptable.
- Compile all the Java classes.
- Assemble an EJB
Java archive (JAR) file. Assemble all the Java classes into
an enterprise bean JAR file using the typical EJB assembly tools. Include
all of the classes generated from running the WSDL2Java command tool
when developing implementation templates and bindings from a WSDL file.
Results
You have an enterprise bean JAR file containing an EJB and supporting
classes created from a WSDL file.
What to do next
Now that you have gathered the required artifacts for developing
a Web service with an enterprise bean, you need to configure the webservices.xml deployment descriptor .
}
Developing Web services applications from existing WSDL files with
enterprise beans
Developing EJB implementation templates and bindings from a WSDL file
Configuring the webservices.xml deployment descriptor
Assembling a Web services-enabled enterprise bean JAR file from a WSDL
file
|