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
-
Git Pull Request:
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.
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.)