IBM WebSphere Multichannel Bank Transformation Toolkit, Version 7.1

Web Service JSR 109 standard compliance

JSR-109 facilitates the building of interoperable Web services in the Java 2 Platform, Enterprise Edition (J2EE) environment. It standardizes the deployment of Web services in a J2EE container.

Prior to JSR-109, the procedure for deploying a Web service was highly coupled to the destination runtime. Deploying a Web service to Apache Axis is quite different from deploying to Apache SOAP. The motivation for JSR-109 is to promote the building of interoperable and portable Web services in the J2EE environment. JSR-109 leverages existing J2EE technology and provides industrial standards for Web services deployment. It clearly defines requirements that a Web service for J2EE product provider must support. It allows a J2EE Web service to be configurable via XML-based deployment descriptors and hides the complexity of the system from Web service developers, assemblers and deployers. Knowing how JSR-109 works allows you to configure a J2EE Web service without having to explore and learn the implementation details of the underlying system. Finally, as JSR-109 is adopted by Web server providers, the process of migration and deployment should become a routine procedure.

In general, a developer is responsible for providing the following:

Programming model that developer needs to provide.

In sum, JSR-109 provides a universal and simple way to enable stateless EJB and SERVLET to Web Service. BTT component complies with JSR-109 standard and can be easily wrapped upon your request.

Invoking JSR109

In Rational® Application Developer or WebSphere® Integration Developer, the IDE generates the Web Service based on EJB or Servlet, and provides the invoke proxy in a strong-type manner.
  • If you want to invoke JSR109 style Web Service inside BTT invoker, do the following:
    1. Add reference:
      Add reference-1

      Add reference-2

    2. Add invocation code:
      /**
       * @see com.ibm.btt.cs.invoker.base.BeanInvokerImpl#executeEJB()
       */
      Public Object executeEJB() throws Exceptions {
         
         return (new AccountStatementPorxy()).execute((string) getEjbParameters().get("request"));
      }
  • If you want to generate a JSR109 service object, do the following:
    1. Right-click the Object (JavaBean, servlet, Single Action EJB, etc), and select Web Services > Create Web Service
      Right click the object
    2. Follow the wizard till you finished generating a JSR109 service object.

      Web Service wizard



Feedback