Widget references URI not properly initialized in a distributed environment

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@678948 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
lresende 2008-07-22 23:52:53 +00:00
parent bf3384faf9
commit d1d6635301

View file

@ -222,14 +222,11 @@ class WidgetImplementationInvoker implements Invoker {
if (binding instanceof OptimizableBinding) {
Binding targetBinding = ((OptimizableBinding)binding).getTargetBinding();
if (targetBinding != null) {
targetURI = URI.create(targetBinding.getURI()).getPath();
targetURI = targetBinding.getURI();
}
}
if (targetURI == null) {
targetURI = URI.create(binding.getURI()).getPath();
if (!targetURI.startsWith("/")) {
targetURI = "/" + targetURI;
}
targetURI = binding.getURI();
}
if(proxyClient.equals("JSONRpcClient")) {