From 3b191c283307dc68e2aaa6faea58f4b3b717e35c Mon Sep 17 00:00:00 2001 From: rfeng Date: Tue, 16 Mar 2010 18:08:46 +0000 Subject: 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 --- .../tutorials/travelsample/launchers/feed-logger/pom.xml | 6 +++--- .../src/main/java/scatours/FeedLoggerLauncher.java | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'sca-java-2.x/trunk/tutorials/travelsample/launchers/feed-logger') diff --git a/sca-java-2.x/trunk/tutorials/travelsample/launchers/feed-logger/pom.xml b/sca-java-2.x/trunk/tutorials/travelsample/launchers/feed-logger/pom.xml index b8067e75f2..4dd36bfcfc 100644 --- a/sca-java-2.x/trunk/tutorials/travelsample/launchers/feed-logger/pom.xml +++ b/sca-java-2.x/trunk/tutorials/travelsample/launchers/feed-logger/pom.xml @@ -22,10 +22,10 @@ org.apache.tuscany.sca scatours - 1.0-SNAPSHOT + 2.0-SNAPSHOT ../../pom.xml - 1.0-SNAPSHOT + 2.0-SNAPSHOT scatours-launcher-feed-logger Apache Tuscany SCA Tours Feed Logger Launcher @@ -53,7 +53,7 @@ org.apache.tuscany.sca - tuscany-host-tomcat + tuscany-host-jetty ${tuscany.version} diff --git a/sca-java-2.x/trunk/tutorials/travelsample/launchers/feed-logger/src/main/java/scatours/FeedLoggerLauncher.java b/sca-java-2.x/trunk/tutorials/travelsample/launchers/feed-logger/src/main/java/scatours/FeedLoggerLauncher.java index 4aea24dbfe..35c3560645 100644 --- a/sca-java-2.x/trunk/tutorials/travelsample/launchers/feed-logger/src/main/java/scatours/FeedLoggerLauncher.java +++ b/sca-java-2.x/trunk/tutorials/travelsample/launchers/feed-logger/src/main/java/scatours/FeedLoggerLauncher.java @@ -21,22 +21,22 @@ package scatours; import static scatours.launcher.LauncherUtil.locate; -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; +import org.apache.tuscany.sca.node.Node; +import org.apache.tuscany.sca.node.Contribution; +import org.apache.tuscany.sca.node.Node; +import org.apache.tuscany.sca.node.NodeFactory; import scatours.feedlogger.FeedLogger; public class FeedLoggerLauncher { public static void main(String[] args) throws Exception { - SCAContribution feedContribution = locate("feed-logger"); + Contribution feedContribution = locate("feed-logger"); - SCANode node = SCANodeFactory.newInstance().createSCANode("feed-logger.composite", feedContribution); + Node node = NodeFactory.getInstance().createNode("feed-logger.composite", feedContribution); node.start(); - FeedLogger logger = ((SCAClient)node).getService(FeedLogger.class, "FeedLogger"); + FeedLogger logger = ((Node)node).getService(FeedLogger.class, "FeedLogger"); logger.logFeeds(5); node.stop(); -- cgit v1.2.3