AS7 deployer not creating domains correctly
-------------------------------------------
Key: SWITCHYARD-369
URL:
https://issues.jboss.org/browse/SWITCHYARD-369
Project: SwitchYard
Issue Type: Bug
Components: deployment
Affects Versions: 0.2
Reporter: Keith Babo
Fix For: 0.2
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:
{code:java}
_deployment.init(ServiceDomainManager.createDomain());
{code}
Instead of this, we should be calling the addApplicationServiceDomain on an existing
ServiceDomainManager reference:
{code:java}
_domainManager.addApplicationServiceDomain(_deployment.getName(),
_deployment.getConfig());
{code}
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira