summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/helloworld-bpel/src/main
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-19 20:08:45 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-19 20:08:45 +0000
commit4f9f517264f873477ed5e1e4de2b22098ebcfc42 (patch)
treefdefb34ef3576e74972e67088bfd2887658ffca8 /java/sca/samples/helloworld-bpel/src/main
parent2d79e8c24ef8dfc1341a2ef2fb753857c6a03a39 (diff)
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
Diffstat (limited to 'java/sca/samples/helloworld-bpel/src/main')
-rw-r--r--java/sca/samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java5
1 files changed, 4 insertions, 1 deletions
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");