From 51f0b44da0f7448c123c33eaf1f790d739211402 Mon Sep 17 00:00:00 2001 From: nash Date: Wed, 22 Sep 2010 18:23:40 +0000 Subject: TUSCANY-3683: Fix exception when RMI service is promoted git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1000125 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sca-java-1.x/trunk/modules') diff --git a/sca-java-1.x/trunk/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java b/sca-java-1.x/trunk/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java index 8985c508fc..b2ce327654 100644 --- a/sca-java-1.x/trunk/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java +++ b/sca-java-1.x/trunk/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java @@ -59,9 +59,7 @@ public class DefaultRMIHost implements RMIHost { } rmiRegistries.put(Integer.toString(port), registry); } - registry.bind(serviceName, serviceObject); - } catch (AlreadyBoundException e) { - throw new RMIHostException(e); + registry.rebind(serviceName, serviceObject); } catch (RemoteException e) { RMIHostRuntimeException rmiExec = new RMIHostRuntimeException(e.getMessage()); rmiExec.setStackTrace(e.getStackTrace()); -- cgit v1.2.3