summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/binding-sca-corba
diff options
context:
space:
mode:
authorwjaniszewski <wjaniszewski@13f79535-47bb-0310-9956-ffa450edef68>2008-08-12 15:17:26 +0000
committerwjaniszewski <wjaniszewski@13f79535-47bb-0310-9956-ffa450edef68>2008-08-12 15:17:26 +0000
commit33cf44b2ca09724ab08769b887750f8b3807fc9e (patch)
tree279941f2ce063119207bf7ee0563960c374a2914 /java/sca/modules/binding-sca-corba
parented705b30f8f693b700696ee69cf1def0b37ce5c8 (diff)
Added Transient Name Server JSE Corba host. Adjusted existing bindings and integration tests and removed 'provideNameServer' flag from binding.corba configuration
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@685180 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/binding-sca-corba')
-rw-r--r--java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAServiceBindingProvider.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAServiceBindingProvider.java b/java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAServiceBindingProvider.java
index dba88434be..6e74686b61 100644
--- a/java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAServiceBindingProvider.java
+++ b/java/sca/modules/binding-sca-corba/src/main/java/org/apache/tuscany/sca/binding/sca/corba/impl/CorbaSCAServiceBindingProvider.java
@@ -23,13 +23,11 @@ import org.apache.axiom.om.OMElement;
import org.apache.tuscany.sca.assembly.SCABinding;
import org.apache.tuscany.sca.binding.corba.impl.service.DynaCorbaServant;
import org.apache.tuscany.sca.binding.corba.impl.service.InvocationProxy;
-import org.apache.tuscany.sca.binding.corba.impl.util.SocketUtil;
import org.apache.tuscany.sca.binding.ws.WebServiceBinding;
import org.apache.tuscany.sca.binding.ws.WebServiceBindingFactory;
import org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator;
import org.apache.tuscany.sca.core.ExtensionPointRegistry;
import org.apache.tuscany.sca.host.corba.CorbaHost;
-import org.apache.tuscany.sca.host.corba.CorbanameURL;
import org.apache.tuscany.sca.interfacedef.InterfaceContract;
import org.apache.tuscany.sca.invocation.MessageFactory;
import org.apache.tuscany.sca.provider.ServiceBindingProvider;
@@ -48,8 +46,6 @@ public class CorbaSCAServiceBindingProvider implements ServiceBindingProvider {
private DynaCorbaServant servant;
private MessageFactory messageFactory;
private InterfaceContract wsdlInterfaceContract;
- private boolean isLocalhost;
- private int bindingPort;
public CorbaSCAServiceBindingProvider(SCABinding binding,
CorbaHost host,
@@ -60,10 +56,6 @@ public class CorbaSCAServiceBindingProvider implements ServiceBindingProvider {
this.host = host;
this.service = service;
- CorbanameURL details = new CorbanameURL(binding.getURI());
- isLocalhost = SocketUtil.isLocalhost(details.getHost());
- bindingPort = details.getPort();
-
messageFactory = extensions.getExtensionPoint(MessageFactory.class);
WebServiceBindingFactory wsFactory = extensions.getExtensionPoint(WebServiceBindingFactory.class);
@@ -87,9 +79,6 @@ public class CorbaSCAServiceBindingProvider implements ServiceBindingProvider {
new CorbaSCAInvocationProxy(service.getRuntimeWire(binding), service.getInterfaceContract()
.getInterface(), messageFactory);
servant = new DynaCorbaServant(proxy, "IDL:org/apache/tuscany/sca/binding/sca/corba/Service:1.0");
- if (isLocalhost) {
- host.createLocalNameServer(bindingPort);
- }
host.registerServant(binding.getURI(), servant);
} catch (Exception e) {
throw new ServiceRuntimeException(e);
@@ -99,9 +88,6 @@ public class CorbaSCAServiceBindingProvider implements ServiceBindingProvider {
public void stop() {
try {
host.unregisterServant(binding.getURI());
- if (isLocalhost) {
- host.releaseLocalNameServer(bindingPort);
- }
} catch (Exception e) {
throw new ServiceRuntimeException(e);
}