summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/tutorials/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/tutorials/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/tutorials/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java b/sca-java-2.x/trunk/tutorials/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java
index c2ffda0725..55b0c0830a 100644
--- a/sca-java-2.x/trunk/tutorials/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java
+++ b/sca-java-2.x/trunk/tutorials/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java
@@ -21,21 +21,21 @@ 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.notification.Notification;
public class NotificationJMSLauncher {
public static void main(String[] args) throws Exception {
- SCAContribution notificationContribution = locate("notification");
- SCAContribution notificationJMSContribution = locate("notification-jms");
+ Contribution notificationContribution = locate("notification");
+ Contribution notificationJMSContribution = locate("notification-jms");
- SCANode node =
- SCANodeFactory.newInstance().createSCANode("notification-jms.composite",
+ Node node =
+ NodeFactory.getInstance().createNode("notification-jms.composite",
notificationContribution,
notificationJMSContribution);
@@ -43,7 +43,7 @@ public class NotificationJMSLauncher {
node.start();
System.out.println("Quick notification test");
- Notification notification = ((SCAClient)node).getService(Notification.class, "Notification");
+ Notification notification = ((Node)node).getService(Notification.class, "Notification");
String accountID = "1234";
String subject = "Holiday payment taken";
String message = "Payment of £102.37 accepted...";