summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-09-22 18:23:40 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-09-22 18:23:40 +0000
commit51f0b44da0f7448c123c33eaf1f790d739211402 (patch)
tree8f231b27df3c1db8e40be00babda3ee5de97a11d /sca-java-1.x/trunk
parent27ccb32f7d90a848093f36753cc82c0ae4083a2f (diff)
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
Diffstat (limited to 'sca-java-1.x/trunk')
-rw-r--r--sca-java-1.x/trunk/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java4
1 files changed, 1 insertions, 3 deletions
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());