summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/branches/sca-java-1.6.1/modules
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-09-22 18:20:46 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-09-22 18:20:46 +0000
commit27ccb32f7d90a848093f36753cc82c0ae4083a2f (patch)
tree27f8190a8352c82821ce30c1361a372249300c8e /sca-java-1.x/branches/sca-java-1.6.1/modules
parent3da23ecae834d78d437f018f27c268f934bf06cf (diff)
TUSCANY-3683: Fix exception when RMI service is promoted
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1000121 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/branches/sca-java-1.6.1/modules')
-rw-r--r--sca-java-1.x/branches/sca-java-1.6.1/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/branches/sca-java-1.6.1/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java b/sca-java-1.x/branches/sca-java-1.6.1/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java
index 8985c508fc..b2ce327654 100644
--- a/sca-java-1.x/branches/sca-java-1.6.1/modules/host-rmi/src/main/java/org/apache/tuscany/sca/host/rmi/DefaultRMIHost.java
+++ b/sca-java-1.x/branches/sca-java-1.6.1/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());