Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Follow the instructions below to deploy a Spring Service service to a running WSO2 AS instance.

  1. Log on to the product's Management Consolemanagement console and select Main -> Service -> Add -> Spring Service.
  2. In the Add Spring Service window that appears, specify the relevant files and click Upload. For example,

    Service Hierarchy
    Specifying a service hierarchy is optional. It allows you to customize your service endpoint reference. If the business logic of the same service changes over time, you can maintain multiple versions of the service by using service hierarchy at the deployment.

    For example, consider a service named "SpringTest"
    If the service hierarchy is not mentioned, then the service endpoint reference is ../services/SpringTest. With service hierarchy specified, for example as 1.0.0, the endpoint reference is ../services/1.0.0/SpringTest. Specifying a hierarchy is important if you want to manage services separately.

    If the files are not faulty, the
     Select Beans to Deploy page appears.

    Info

    If the beans specified in the spring context.xml file are mentioned in the .jar file, they will be displayed on this page.

  3. Select the Include check box associated with the the beans you want to expose as Web services and click Generate.
  4. If the generation is successful, a message appears prompting you to refresh the page. Click OK.
  5. Refresh the Deployed Services page in your product's management console to view the newly added services listed.

...