summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/host-webapp/src/main
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-07-20 16:40:46 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2011-07-20 16:40:46 +0000
commit5b4ef5f167e0b2e08f71a4098b1596486d6c5f51 (patch)
tree5495b2e280d77b0b4df1ff7fc8c0e2e17cb7c2a2 /sca-java-2.x/trunk/modules/host-webapp/src/main
parent2555b1827daae7fd627684edf63fe3afe8ce2ea0 (diff)
Add a domain.registry,uri param
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1148838 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/host-webapp/src/main')
-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) {