Completing the EJB implementation

Develop EJB implementation templates and bindings from a WSDL file. To complete the EJB implementation...

  1. Inspect the enterprise EJB remote interface template, portType_RI.java. If necessary, modify the template. portType is the name of the <wsdl:portType> element in the WSDL file.

  2. Inspect the EJB home interface template, portTypeHome.java. If necessary, modify the template.

  3. Edit the EJB implementation template, bindingImpl.java. binding is the name of the <wsdl:binding> element in the WSDL file.

    1. Complete the implementation of the methods in the template.

    2. (Optional) Make changes if necessary.

    3. (Optional) Change the class name if the binding name is not acceptable.

  4. Compile all the Java classes.

  5. Assemble an EJB JAR file.Assemble all the Java classes into an EJB 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.

An EJB JAR file containing an EJB and supporting classes created from a WSDL file.

Configure the webservices.xml deployment descriptor .

 

See Also

Developing a new Web service from an existing WSDL file using a stateless session enterprise bean
Developing EJB implementation templates and bindings from a WSDL file
Configuring the webservices.xml deployment descriptor
Assembling Web services-enabled EJB JAR file when starting from WSDL