From 4f9f517264f873477ed5e1e4de2b22098ebcfc42 Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 19 Nov 2009 20:08:45 +0000 Subject: Changing client application to discover contribution location and avoid default node behaviour that is finding multiple contributions based on existent sca-contribution.xmlin tuscany modules git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882273 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'java/sca/samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java') diff --git a/java/sca/samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java b/java/sca/samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java index e2d69eddf6..6a9891a821 100644 --- a/java/sca/samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java +++ b/java/sca/samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java @@ -19,6 +19,8 @@ package helloworld; +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; @@ -30,7 +32,8 @@ import org.apache.tuscany.sca.node.NodeFactory; public class BPELClient { public static void main(String[] args) throws Exception { - Node node = NodeFactory.newInstance().createNode(); + String contribution = ContributionLocationHelper.getContributionLocation(BPELClient.class); + Node node = NodeFactory.newInstance().createNode("helloworld.composite", new Contribution("calculator", contribution)); node.start(); Hello bpelService = node.getService(Hello.class, "BPELHelloWorldComponent"); -- cgit v1.2.3