You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2009/12/04 14:38:35 UTC

svn commit: r887188 - /tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java

Author: antelder
Date: Fri Dec  4 13:38:34 2009
New Revision: 887188

URL: http://svn.apache.org/viewvc?rev=887188&view=rev
Log:
Add setting the domain uri from an init parameter to start getting the distributed domain working in webapps and the tomcat distribution

Modified:
    tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java

Modified: tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java?rev=887188&r1=887187&r2=887188&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/ServletHostHelper.java Fri Dec  4 13:38:34 2009
@@ -101,6 +101,12 @@
             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;