summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java b/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java
index e9b8794d0f..231108bea2 100644
--- a/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java
+++ b/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java
@@ -49,6 +49,7 @@ public class WebAppHelper {
private static final String CONTRIBUTION = "contribution";
private static final String NODE_CONFIGURATION = "node.configuration";
private static final String DOMAIN_URI = "domain.uri";
+ private static final String DOMAIN_REGISTRY_URI = "domain.registry.uri";
private static final String NODE_URI = "node.uri";
private static final String COMPOSITE_URI = "composite.uri";
public static final String DOMAIN_NAME_ATTR = "org.apache.tuscany.sca.domain.name";
@@ -323,6 +324,10 @@ public class WebAppHelper {
configuration.setDomainRegistryURI(domainURI);
}
}
+ String domainRegistryURI = configurator.getInitParameter(DOMAIN_REGISTRY_URI);
+ if (domainRegistryURI != null) {
+ configuration.setDomainRegistryURI(domainRegistryURI);
+ }
}
configuration.setAttribute(ServletContext.class.getName(), servletContext);
if(configurator instanceof ServletConfigurator) {