//this.binding.setURI(wsBinding.getURI());
// get the url out of the binding and send it to the registry if
// a distributed domain is configured
DistributedSCADomain distributedDomain = ((SCABindingImpl)this.binding).getDistributedDomain();
ServiceDiscovery serviceDiscovery = distributedDomain.getServiceDiscovery();
// register endpoint against the path element of the binding uri
String componentName = this.binding.getURI();
try {
URI servicePath = new URI(this.binding.getURI());
componentName = servicePath.getPath();
// strinp any leading slash
if (componentName.charAt(0) == '/'){
componentName = componentName.substring(1, componentName.length());
}
} catch(Exception ex) {
// do nothing, the binding uri string will be used
}
serviceDiscovery.registerServiceEndpoint(distributedDomain.getDomainName(),
distributedDomain.getNodeName(),
componentName,
SCABinding.class.getName(),
wsBinding.getURI());
/*