diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-16 18:08:46 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-16 18:08:46 +0000 |
commit | 3b191c283307dc68e2aaa6faea58f4b3b717e35c (patch) | |
tree | 9f5742cb5dd7be684c73a606077b106e8d23a700 /sca-java-2.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/src/main/java/scatours/FullAppNodesLauncher.java | |
parent | f31b8fa6a3b9d9d356212670296c60beb468c8e5 (diff) |
Update the travelsample with 2.x namespace/api/dependency (not completed yet)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@923913 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/src/main/java/scatours/FullAppNodesLauncher.java')
-rw-r--r-- | sca-java-2.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/src/main/java/scatours/FullAppNodesLauncher.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sca-java-2.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/src/main/java/scatours/FullAppNodesLauncher.java b/sca-java-2.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/src/main/java/scatours/FullAppNodesLauncher.java index 4d6459b749..cd618a45e0 100644 --- a/sca-java-2.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/src/main/java/scatours/FullAppNodesLauncher.java +++ b/sca-java-2.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/src/main/java/scatours/FullAppNodesLauncher.java @@ -21,41 +21,41 @@ package scatours; import java.io.IOException; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; +import org.apache.tuscany.sca.node.Node; +import org.apache.tuscany.sca.node.NodeFactory; public class FullAppNodesLauncher { public static void main(String[] args) throws Exception { - SCANode nodeCreditcard = - SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/creditcard"); + Node nodeCreditcard = + NodeFactory.getInstance().createNodeFromURL("http://localhost:9990/node-config/creditcard"); nodeCreditcard.start(); - SCANode nodePayment = - SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/payment"); + Node nodePayment = + NodeFactory.getInstance().createNodeFromURL("http://localhost:9990/node-config/payment"); nodePayment.start(); - SCANode nodeShoppingcart = - SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/shoppingcart"); + Node nodeShoppingcart = + NodeFactory.getInstance().createNodeFromURL("http://localhost:9990/node-config/shoppingcart"); nodeShoppingcart.start(); - SCANode nodeCurrency = - SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/currency"); + Node nodeCurrency = + NodeFactory.getInstance().createNodeFromURL("http://localhost:9990/node-config/currency"); nodeCurrency.start(); - SCANode nodePackagedtrip = - SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/packagedtrip"); + Node nodePackagedtrip = + NodeFactory.getInstance().createNodeFromURL("http://localhost:9990/node-config/packagedtrip"); nodePackagedtrip.start(); - SCANode nodeBespoketrip = - SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/bespoketrip"); + Node nodeBespoketrip = + NodeFactory.getInstance().createNodeFromURL("http://localhost:9990/node-config/bespoketrip"); nodeBespoketrip.start(); - SCANode nodeFrontend = - SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/coordination"); + Node nodeFrontend = + NodeFactory.getInstance().createNodeFromURL("http://localhost:9990/node-config/coordination"); nodeFrontend.start(); - SCANode nodeUI = SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/ui"); + Node nodeUI = NodeFactory.getInstance().createNodeFromURL("http://localhost:9990/node-config/ui"); nodeUI.start(); System.out.println("Point your browser at - http://localhost:8080/scatours/ "); |