diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-04 13:38:34 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-12-04 13:38:34 +0000 |
commit | 62c97ce41ae36c5dc3ee3a90cc72ed859fb76776 (patch) | |
tree | 64e963e6b33e9924bd65ee9cf6d961d6f3c657aa | |
parent | a770f3fdc3e2fd42bb62e14f022f940a02ef5988 (diff) |
Add setting the domain uri from an init parameter to start getting the distributed domain working in webapps and the tomcat distribution
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@887188 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java b/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java index 4ad9519ad8..8b6304d863 100644 --- a/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java +++ b/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java @@ -101,6 +101,12 @@ public class ServletHostHelper { String domainURI = (String) servletContext.getAttribute("domain.uri"); if (domainURI != null) { configuration.setDomainURI(domainURI); + } else { + domainURI = servletContext.getInitParameter("org.apache.tuscany.sca.defaultDomainURI"); + if (domainURI != null) { + configuration.setDomainURI(domainURI); + configuration.setDomainRegistryURI(domainURI); + } } } return configuration; |