Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4479

Supporting hierarchical service deployment in Axis2

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • deployment
    • None

    Description

      Currently Axis2 can only deploy services at the repository/services level. This makes it impossible to deploy several versions of the same service.

      Therefore, I've improved our deployment engine to deploy services by looking at the hierarchical path of the service. For example this allows us to deploy a service repository/services/foo/bar/version.aar. And also this allows us to deploy any number of services as follows.
      repository/services/versionService/1.0.0/version.aar
      repository/services/versionService/1.0.1/version.aar

      In the implementation, I've attached the hierarchical part of the service (versionService/1.0.1/) in front of the service name which is read from the services.xml. And also I've fixed the URI based dispatching logics to dispatch the services correctly.

      This improvement doesn't affect any of the existing functionalities. The only limitation of this is we can't deploy a RESTful service in this manner. Those can only be supported at repository/service level. That is because, incoming URL of a RESTful service can contain '/' separated parameters to the service.

      I'm attaching the patch with this.

      Attachments

        1. hierarchical_dispatching.patch
          28 kB
          Isuru Suriarachchi
        2. hierarchical_deployment.patch
          14 kB
          Isuru Suriarachchi
        3. hierarchical_deployment_special_char.patch
          33 kB
          Isuru Suriarachchi

        Activity

          People

            isurues Isuru Suriarachchi
            isurues Isuru Suriarachchi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: