summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-rmi-runtime/src/main/java
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-03-11 04:45:13 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2010-03-11 04:45:13 +0000
commit4c992115eb659a49506d19fbb8c116bc44f7421d (patch)
treea0be41d1afd7248406f0160024cc51e8ba72a3b2 /sca-java-2.x/trunk/modules/binding-rmi-runtime/src/main/java
parent98e926ec59cca9e5696e5376ea59940ceb7cae3b (diff)
Allows RMIHost to return mapped uri
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@921690 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-rmi-runtime/src/main/java')
-rw-r--r--sca-java-2.x/trunk/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java b/sca-java-2.x/trunk/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java
index 2dbdbea67b..7e343e4413 100644
--- a/sca-java-2.x/trunk/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java
+++ b/sca-java-2.x/trunk/modules/binding-rmi-runtime/src/main/java/org/apache/tuscany/sca/binding/rmi/provider/RMIServiceBindingProvider.java
@@ -77,7 +77,9 @@ public class RMIServiceBindingProvider implements ServiceBindingProvider {
try {
- rmiHost.registerService(binding.getURI(), rmiProxy);
+ String uri = rmiHost.registerService(binding.getURI(), rmiProxy);
+ // Update the binding with the physical URI
+ binding.setURI(uri);
} catch (RMIHostException e) {
throw new ServiceRuntimeException(e);