summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/store/src/main/java/launch/Launch.java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-17 06:21:41 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-17 06:21:41 +0000
commitc40ade3c51fffbe23ca390599c056206e0f5fd5b (patch)
tree77b6c512c7fb207fe5d9b81b9d3ddef5ab57da15 /java/sca/samples/store/src/main/java/launch/Launch.java
parentb33133d72fd46a719b9449d2582c1cd6f95f35c7 (diff)
Updating store sample application to the latest OASIS namespace/packages and updating the launcher to use 2.x Node
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@881166 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/samples/store/src/main/java/launch/Launch.java')
-rw-r--r--java/sca/samples/store/src/main/java/launch/Launch.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/java/sca/samples/store/src/main/java/launch/Launch.java b/java/sca/samples/store/src/main/java/launch/Launch.java
index 801697abea..5105b0ac43 100644
--- a/java/sca/samples/store/src/main/java/launch/Launch.java
+++ b/java/sca/samples/store/src/main/java/launch/Launch.java
@@ -19,16 +19,21 @@
package launch;
-import org.apache.tuscany.sca.host.embedded.SCADomain;
+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;
public class Launch {
public static void main(String[] args) throws Exception {
System.out.println("Starting ...");
- SCADomain scaDomain = SCADomain.newInstance("store.composite");
+ String contribution = ContributionLocationHelper.getContributionLocation(Launch.class);
+ Node node = NodeFactory.newInstance().createNode("store.composite", new Contribution("test", contribution));
System.out.println("store.composite ready for big business !!!");
System.in.read();
System.out.println("Stopping ...");
- scaDomain.close();
+ node.stop();
+ node.destroy();
System.out.println();
}
}