diff options
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r-- | sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java b/sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java index 9e2ecf2f6e..a687f44dae 100644 --- a/sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java +++ b/sca-java-2.x/trunk/testing/itest/dynamicRefURI/src/main/java/org/apache/tuscany/sca/itest/HelloworldClient.java @@ -21,7 +21,6 @@ package org.apache.tuscany.sca.itest; import org.apache.tuscany.sca.runtime.TuscanyComponentContext;
import org.apache.tuscany.sca.runtime.TuscanyServiceReference;
-import org.oasisopen.sca.ComponentContext;
import org.oasisopen.sca.annotation.Context;
import org.oasisopen.sca.annotation.Reference;
@@ -31,22 +30,14 @@ public class HelloworldClient implements Helloworld { public Helloworld helloworldService;
@Context
- public ComponentContext componentContext;
-
- @Context
public TuscanyComponentContext tuscanyComponentContext;
@Override
public String sayHello(String name) {
-// ServiceReference<Helloworld> sr = componentContext.getServiceReference(Helloworld.class, "helloworldService");
-// ((ServiceReferenceImpl)sr).setBindingURI("http://localhost:8080/HelloworldService/Helloworld");
-
TuscanyServiceReference<Helloworld> tsr = tuscanyComponentContext.getServiceReference(Helloworld.class, "helloworldService");
-// TuscanyServiceReference<Helloworld> tsr = (TuscanyServiceReference<Helloworld>)componentContext.getServiceReference(Helloworld.class, "helloworldService");
tsr.setBindingURI("http://localhost:8080/HelloworldService/Helloworld");
-
return "client: " + tsr.getService().sayHello(name);
}
}
|