tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r941248 - /tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java
Date Wed, 05 May 2010 11:12:16 GMT
Author: antelder
Date: Wed May  5 11:12:16 2010
New Revision: 941248

URL: http://svn.apache.org/viewvc?rev=941248&view=rev
Log:
Update to use NodeFactory as now that does most things that DomainNode did

Modified:
    tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java

Modified: tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java?rev=941248&r1=941247&r2=941248&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/domain/node/DomainNodeMain.java
Wed May  5 11:12:16 2010
@@ -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) {



Mime
View raw message