Use the domain name not the uri when looking for a local registry

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1135301 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
antelder 2011-06-13 21:44:22 +00:00
parent 5695a53ee0
commit 4bdede666f

View file

@ -55,7 +55,7 @@ public class SCAClientFactoryImpl extends SCAClientFactory {
for (ExtensionPointRegistry xpr : ExtensionPointRegistryLocator.getExtensionPointRegistries()) {
ExtensibleDomainRegistryFactory drf = ExtensibleDomainRegistryFactory.getInstance(xpr);
for (DomainRegistry epr : drf.getEndpointRegistries()) {
if (domainURI.equals(epr.getDomainURI())) {
if (domainURI.equals(epr.getDomainName())) {
this.extensionPointRegistry = xpr;
this.domainRegistry = epr;
return;
@ -104,5 +104,5 @@ public class SCAClientFactoryImpl extends SCAClientFactory {
}
return (T)Proxy.newProxyInstance(serviceInterface.getClassLoader(), new Class[]{serviceInterface}, handler);
}
}
}