summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/samples/helloworld-bpel/src/main/java/helloworld/BPELClient.java')
-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");