From a3e7e822c46912424cc5b96cd18fc15cefdc23eb Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 13 Oct 2009 13:36:57 +0000 Subject: Move adding the static route code to before the channel start to see if that helps with comms to remote nodes git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@824753 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/endpoint/tribes/ReplicatedEndpointRegistry.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'java/sca/modules') diff --git a/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java b/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java index a2823bb88c..7ac9528132 100644 --- a/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java +++ b/java/sca/modules/endpoint-tribes/src/main/java/org/apache/tuscany/sca/endpoint/tribes/ReplicatedEndpointRegistry.java @@ -176,12 +176,7 @@ public class ReplicatedEndpointRegistry implements EndpointRegistry, LifeCycleLi 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 @@ public class ReplicatedEndpointRegistry implements EndpointRegistry, LifeCycleLi map.getChannel().addInterceptor(smi); } + try { + map.getChannel().start(Channel.DEFAULT); + } catch (ChannelException e) { + throw new IllegalStateException(e); + } } -- cgit v1.2.3