tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r1148838 - /tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java
Date Wed, 20 Jul 2011 16:40:47 GMT
Author: rfeng
Date: Wed Jul 20 16:40:46 2011
New Revision: 1148838

URL: http://svn.apache.org/viewvc?rev=1148838&view=rev
Log:
Add a domain.registry,uri param

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

Modified: tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.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/WebAppHelper.java?rev=1148838&r1=1148837&r2=1148838&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/host-webapp/src/main/java/org/apache/tuscany/sca/host/webapp/WebAppHelper.java
Wed Jul 20 16:40:46 2011
@@ -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) {



Mime
View raw message