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/10/13 15:36:57 UTC

svn commit: r824753 - /tuscany/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java

Author: antelder
Date: Tue Oct 13 13:36:57 2009
New Revision: 824753

URL: http://svn.apache.org/viewvc?rev=824753&view=rev
Log:
Move adding the static route code to before the channel start to see if that helps with comms to remote nodes

Modified:
    tuscany/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java

Modified: tuscany/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java?rev=824753&r1=824752&r2=824753&view=diff
==============================================================================
--- tuscany/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java (original)
+++ tuscany/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java Tue Oct 13 13:36:57 2009
@@ -176,12 +176,7 @@
             new ReplicatedMap(null, createChannel(address, port, bind), timeout, this.domainURI,
                               new ClassLoader[] {ReplicatedEndpointRegistry.class.getClassLoader()});
         map.addListener(this);
-        try {
-            map.getChannel().start(Channel.DEFAULT);
-        } catch (ChannelException e) {
-            throw new IllegalStateException(e);
-        }
-        
+
         if (staticRoutes != null) {
             StaticMembershipInterceptor smi = new StaticMembershipInterceptor();
             for (URL staticRoute : staticRoutes) {
@@ -198,6 +193,11 @@
             map.getChannel().addInterceptor(smi);
         }
         
+        try {
+            map.getChannel().start(Channel.DEFAULT);
+        } catch (ChannelException e) {
+            throw new IllegalStateException(e);
+        }
         
     }