diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-19 07:34:24 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-19 07:34:24 +0000 |
commit | 9b92a0428af26e31227c7e2155bc9d2e8df6902b (patch) | |
tree | f0c8469d1c70919d10f6472121654866813e0f63 /sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher | |
parent | 207e82809de3b533fce478cc4c5fac121e602c67 (diff) |
Update to match sample contribution changes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@946070 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher')
-rw-r--r-- | sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java b/sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java index a4f9247503..021b4d9a17 100644 --- a/sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java +++ b/sca-java-2.x/trunk/samples/launcher-embedded-jse/src/main/java/launcher/SampleJSELauncher.java @@ -49,7 +49,9 @@ public class SampleJSELauncher extends RuntimeIntegration { } else if (contribution.equals("contribution-binding-ws-calculator")){
launcher.launchBindingWSCalculator();
} else if (contribution.equals("contribution-binding-rmi-calculator")){
- launcher.launchBindingRMICalculator();
+ launcher.launchBindingRMICalculator();
+ } else if (contribution.equals("contribution-implementation-java-calculator")){
+ launcher.launchImplementationJavaCalculator();
} else {
System.out.println("Sample contribution " + contribution + "not found");
}
@@ -106,6 +108,16 @@ public class SampleJSELauncher extends RuntimeIntegration { stopNode(node2);
stopNode(node1);
- }
+ }
+
+ /**
+ * The contribution-binding-sca-calculator contribution includes a client component
+ * that calls the CalculatorServiceComponent from an operation marked by @Init.
+ */
+ public void launchImplementationJavaCalculator(){
+ Node node = startNode(new Contribution("c1", "../contribution-implementation-java-calculator/target/classes"));
+
+ stopNode(node);
+ }
}
|