+

Search Tips   |   Advanced Search

Completing the EJB implementation for JAX-RPC applications

After we have developed the Java artifacts necessary to develop a JAX-RPC web service, complete the EJB implementation to assemble a JAR file or a web application archive (WAR) file based on your programming model. The resulting JAR file or WAR file contains the EJB implementation and the supported classes created from the tooling.

Develop EJB implementation templates and bindings from a WSDL file for JAX-RPC web services using the wsdl2java command-line tool. The deployment descriptor templates generated from a WSDL file are required to complete the EJB implementation in the web services development process.

For JAX-RPC applications, complete the enterprise beans implementation by writing the business application.


Tasks

  1. 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.

  2. Edit the bindingImpl.java EJB implementation template. Where binding is the name of the <wsdl:binding> element in the WSDL file.
  3. Complete the implementation of the methods in the template.
  4. (Optional) Make changes if necessary.
  5. (Optional) Change the class name if the binding name is not acceptable.
  6. Compile all the Java classes.
  7. Assemble an EJB JAR file. Assemble all the Java classes into an enterprise bean JAR file using assembly tools. Include all of the classes generated from running the WSDL2Java command tool when developing implementation templates and bindings from a WSDL file.

We have enabled an enterprise beans business application for JAX-RPC web services. You now have an enterprise bean JAR file containing an EJB and supporting classes created from web services artifacts.


What to do next

Now that we have gathered the required artifacts for developing a JAX-RPC web service with an enterprise bean, we need to, configure the webservices.xml deployment descriptor.


Related:

  • Development and assembly tools
  • Implement web services applications with JAX-RPC
  • Implement web services applications from existing WSDL files with JAX-RPC
  • Developing JAX-RPC web services deployment descriptor templates for an enterprise bean implementation
  • Developing EJB implementation templates and bindings from a WSDL file for JAX-RPC web services
  • Configure the webservices.xml deployment descriptor for JAX-RPC web services
  • Assembling web services applications
  • Assembling a JAR file enabled for web services from an enterprise bean
  • Assemble applications
  • WSDL2Java command for JAX-RPC applications