diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-05 11:12:16 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-05-05 11:12:16 +0000 |
commit | af37afc867450d17714f488a7c6057ddd2c1ea20 (patch) | |
tree | d2c435958b8d0ce6f180b9691f632bd35083a50d /sca-java-2.x/trunk | |
parent | 643632211aed7072ab68a42e2dfc823f6138f742 (diff) |
Update to use NodeFactory as now that does most things that DomainNode did
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@941248 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java index 4944478d88..ac0672fb2c 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java @@ -23,6 +23,9 @@ import java.io.File; import java.util.ArrayList;
import java.util.List;
+import org.apache.tuscany.sca.node.Node;
+import org.apache.tuscany.sca.node.NodeFactory;
+
public class DomainNodeMain {
/**
@@ -31,7 +34,7 @@ public class DomainNodeMain { */
public static void main(String[] args) throws Exception {
- String configURI = "vm://defaultDoamin";
+ String configURI = "uri:default";
List<String> contributions = new ArrayList<String>();
for (int i = 0; i < args.length; i++) {
@@ -47,7 +50,8 @@ public class DomainNodeMain { }
}
- DomainNode node = new DomainNode(configURI, contributions.toArray(new String[contributions.size()]));
+ Node node = NodeFactory.newInstance(configURI).createNode((String)null, contributions.toArray(new String[contributions.size()]));
+ node.start();
System.out.println("Hit enter to stop node...");
if (System.in.read() == -1) {
|