summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/calculator/src
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/samples/calculator/src')
-rw-r--r--sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java b/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java
index 24c279948b..53c793806e 100644
--- a/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java
+++ b/sca-java-2.x/trunk/samples/calculator/src/main/java/calculator/CalculatorClient.java
@@ -19,7 +19,6 @@
package calculator;
-import org.apache.tuscany.sca.node.Client;
import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.NodeFactory;
@@ -32,7 +31,7 @@ public class CalculatorClient {
Node node = NodeFactory.newInstance().createNode((String)null, new String[] {"target/classes"}).start();
- CalculatorService calculatorService = ((Client)node).getService(CalculatorService.class, "CalculatorServiceComponent");
+ CalculatorService calculatorService = node.getService(CalculatorService.class, "CalculatorServiceComponent");
// Calculate
System.out.println("3 + 2=" + calculatorService.add(3, 2));