summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/host-corba/src/main
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-06-27 06:21:10 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-06-27 06:21:10 +0000
commit585ffe4d37666babae11c0df447f8bf01bd0a8e3 (patch)
treec4df782733488001a5be40148dba980cf5528127 /java/sca/modules/host-corba/src/main
parentf85434a29c399b8325a6268163711f916806da66 (diff)
Apply the patch from Wojtek for TUSCANY-2397. Thanks.
I also did some refactoring for the test case to only start the tnameserv once git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@672122 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/host-corba/src/main')
-rw-r--r--java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/ExtensibleCorbaHost.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/ExtensibleCorbaHost.java b/java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/ExtensibleCorbaHost.java
index eab7af57a7..0b44ccafe1 100644
--- a/java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/ExtensibleCorbaHost.java
+++ b/java/sca/modules/host-corba/src/main/java/org/apache/tuscany/sca/host/corba/ExtensibleCorbaHost.java
@@ -43,14 +43,14 @@ public class ExtensibleCorbaHost implements CorbaHost {
if (chep.getCorbaHosts().isEmpty()) {
throw new CorbaHostException("No registered CORBA hosts");
}
- registerServant(name, host, port, serviceObject);
+ chep.getCorbaHosts().get(0).registerServant(name, host, port, serviceObject);
}
public void unregisterServant(String name, String host, int port) throws CorbaHostException {
if (chep.getCorbaHosts().isEmpty()) {
throw new CorbaHostException("No registered CORBA hosts");
}
- unregisterServant(name, host, port);
+ chep.getCorbaHosts().get(0).unregisterServant(name, host, port);
}
}