Uploaded image for project: 'SwitchYard'
  1. SwitchYard
  2. SWITCHYARD-369

AS7 deployer not creating domains correctly

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 0.2
    • Fix Version/s: 0.2
    • Component/s: deployment
    • Labels:
      None

      Description

      The AS7 deployer is creating a root-level domain for each application instead of creating a single root-level domain and then adding individual applications to that domain. See line 89 in org.switchyard.as7.extension.deployment.SwitchYardDeployment:

      _deployment.init(ServiceDomainManager.createDomain());
      

      Instead of this, we should be calling the addApplicationServiceDomain on an existing ServiceDomainManager reference:

      _domainManager.addApplicationServiceDomain(_deployment.getName(), _deployment.getConfig());
      

      Note that this will require an instance of ServiceDomainManager to be shared across all deployments in AS7 to provide a common root domain. Also note that the SwitchYard config is being passed in.

        Gliffy Diagrams

          Activity

          Hide
          rcernich Rob Cernich added a comment -

          For AS7, we could register a ServiceDomainManager Service when the SwitchYard subsystem is added (see SwitchYardSubssytemAdd). The AS7 SwitchYard deployer could then use that service to get at the domain manager. (The SwitchYard admin service is accessed in the same way.)

          Show
          rcernich Rob Cernich added a comment - For AS7, we could register a ServiceDomainManager Service when the SwitchYard subsystem is added (see SwitchYardSubssytemAdd). The AS7 SwitchYard deployer could then use that service to get at the domain manager. (The SwitchYard admin service is accessed in the same way.)
          Hide
          kcbabo Keith Babo added a comment -

          pushed

          Show
          kcbabo Keith Babo added a comment - pushed

            People

            • Assignee:
              tfennelly Tom Fennelly
              Reporter:
              kcbabo Keith Babo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development