diff options
-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; |