diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java b/java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java index 3f6ecfdb03..000c108934 100644 --- a/java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java +++ b/java/sca/samples/binding-ws-calculator/src/main/java/sample/SampleClientImpl.java @@ -19,6 +19,8 @@ package sample; +import org.apache.tuscany.sca.node.Contribution; +import org.apache.tuscany.sca.node.ContributionLocationHelper; import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.NodeFactory; @@ -28,7 +30,8 @@ import org.apache.tuscany.sca.node.NodeFactory; */ public class SampleClientImpl { public static void main(String[] args) throws Exception { - Node node = NodeFactory.newInstance().createNode(); + String location = ContributionLocationHelper.getContributionLocation(SampleClient.class); + Node node = NodeFactory.newInstance().createNode(new Contribution("c1", location)); node.start(); |