summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-05-31 15:37:54 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-05-31 15:37:54 +0000
commitf87fceba25d5981512651c43cda51474def19e8d (patch)
tree1fe785d7ff6605640c1c54d24deae7d25a25f9c0 /sandbox
parentdba338a0d8ca0344da4d99b9a59e76d2427da87b (diff)
Launcher updates to take account of latest contribution changes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@780458 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppNode.java7
-rw-r--r--sandbox/travelsample/launchers/interaction-launcher/src/main/java/scatours/LaunchIntactionNode.java38
2 files changed, 23 insertions, 22 deletions
diff --git a/sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppNode.java b/sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppNode.java
index 9569979c36..054061a14b 100644
--- a/sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppNode.java
+++ b/sandbox/travelsample/launchers/fullapp-launcher/src/main/java/scatours/LaunchFullAppNode.java
@@ -47,7 +47,12 @@ public class LaunchFullAppNode {
new SCAContribution("creditcard", "../../contributions/creditcard-payment-jaxb-contribution/target/classes"),
new SCAContribution("shoppingcart", "../../contributions/shoppingcart-contribution/target/classes"),
new SCAContribution("scatours", "../../contributions/scatours-contribution/target/classes"),
- new SCAContribution("ui", "../../contributions/fullapp-ui-contribution/target/classes"));
+ new SCAContribution("fullapp-ui", "../../contributions/fullapp-ui-contribution/target/classes"),
+ new SCAContribution("fullapp-frontend", "../../contributions/fullapp-frontend-contribution/target/classes"),
+ new SCAContribution("fullapp-currency", "../../contributions/fullapp-currency-contribution/target/classes"),
+ new SCAContribution("fullapp-packagedtrip", "../../contributions/fullapp-packagedtrip-contribution/target/classes"),
+ new SCAContribution("fullapp-bespoketrip", "../../contributions/fullapp-bespoketrip-contribution/target/classes"),
+ new SCAContribution("fullapp-shoppingcart", "../../contributions/fullapp-shoppingcart-contribution/target/classes"));
node1.start();
diff --git a/sandbox/travelsample/launchers/interaction-launcher/src/main/java/scatours/LaunchIntactionNode.java b/sandbox/travelsample/launchers/interaction-launcher/src/main/java/scatours/LaunchIntactionNode.java
index 00d28bc443..fe08cac367 100644
--- a/sandbox/travelsample/launchers/interaction-launcher/src/main/java/scatours/LaunchIntactionNode.java
+++ b/sandbox/travelsample/launchers/interaction-launcher/src/main/java/scatours/LaunchIntactionNode.java
@@ -21,6 +21,7 @@ package scatours;
import java.io.IOException;
+import org.apache.tuscany.sca.node.SCAClient;
import org.apache.tuscany.sca.node.SCAContribution;
import org.apache.tuscany.sca.node.SCANode;
import org.apache.tuscany.sca.node.SCANodeFactory;
@@ -32,31 +33,26 @@ public class LaunchIntactionNode {
// OK for development but you must launch the node from this module
public static void launchFromFileSystemDir(){
- SCANode node = null;
try {
- node = SCANodeFactory.newInstance().createSCANode("scatours.composite",
- new SCAContribution("common", "../../contributions/common-contribution/target/classes"),
- new SCAContribution("currency", "../../contributions/currency-contribution/target/classes"),
- new SCAContribution("hotel", "../../contributions/hotel-contribution/target/classes"),
- new SCAContribution("flight", "../../contributions/flight-contribution/target/classes"),
- new SCAContribution("car", "../../contributions/car-contribution/target/classes"),
- new SCAContribution("trip", "../../contributions/trip-contribution/target/classes"),
- new SCAContribution("tripbooking", "../../contributions/tripbooking-contribution/target/classes"),
- new SCAContribution("travelcatalog", "../../contributions/travelcatalog-contribution/target/classes"),
- new SCAContribution("payment", "../../contributions/payment-java-contribution/target/classes"),
- new SCAContribution("creditcard", "../../contributions/creditcard-payment-jaxb-contribution/target/classes"),
- new SCAContribution("shoppingcart", "../../contributions/shoppingcart-contribution/target/classes"),
- new SCAContribution("scatours", "../../contributions/scatours-contribution/target/classes"),
- new SCAContribution("ui", "../../contribution/interaction-ui-contribution/target/classes"));
- node.start();
+ SCANode node1 = SCANodeFactory.newInstance().createSCANode("client.composite",
+ new SCAContribution("common", "../../contributions/common-contribution/target/classes"),
+ new SCAContribution("calendar", "../../contributions/calendar-contribution/target/classes"),
+ new SCAContribution("client", "../../contributions/interaction-client-contribution/target/classes"));
+
+ SCANode node2 = SCANodeFactory.newInstance().createSCANode("client.composite",
+ new SCAContribution("common", "../../contributions/common-contribution/target/classes"),
+ new SCAContribution("hotel", "../../contributions/hotel-contribution/target/classes"),
+ new SCAContribution("remoteService", "../../contributions/interaction-service-remote-contribution/target/classes"));
+
+ node2.start();
+ node1.start();
- System.out.println("Node started - Press enter to shutdown.");
- try {
- System.in.read();
- } catch (IOException e) {}
+ Runnable runner = ((SCAClient)node1).getService(Runnable.class, "TestClient/Runnable");
+ runner.run();
- node.stop();
+ node1.stop();
+ node2.stop();
} catch (Exception ex) {
System.out.println(ex.toString());