summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours')
-rw-r--r--sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/NotificationRMILauncher.java15
-rw-r--r--sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/notification/Notification.java4
2 files changed, 9 insertions, 10 deletions
diff --git a/sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/NotificationRMILauncher.java b/sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/NotificationRMILauncher.java
index 200f870417..2904349a49 100644
--- a/sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/NotificationRMILauncher.java
+++ b/sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/NotificationRMILauncher.java
@@ -31,18 +31,17 @@ import scatours.notification.Notification;
public class NotificationRMILauncher {
public static void main(String[] args) throws Exception {
- SCAContribution notificationContribution =
- locate("notification");
- SCAContribution notificationRMIContribution =
- locate("notification-rmi");
+ SCAContribution notificationContribution = locate("notification");
+ SCAContribution notificationRMIContribution = locate("notification-rmi");
- SCANode node = SCANodeFactory.newInstance().createSCANode(
- "notification-rmi.composite", notificationContribution, notificationRMIContribution);
+ SCANode node =
+ SCANodeFactory.newInstance().createSCANode("notification-rmi.composite",
+ notificationContribution,
+ notificationRMIContribution);
node.start();
System.out.println("Quick notification test");
- Notification notification = ((SCAClient)node).getService(
- Notification.class, "Notification");
+ Notification notification = ((SCAClient)node).getService(Notification.class, "Notification");
String accountID = "1234";
String subject = "Holiday payment taken";
String message = "Payment of £102.37 accepted...";
diff --git a/sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/notification/Notification.java b/sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/notification/Notification.java
index 79706fcc9d..020e1e40db 100644
--- a/sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/notification/Notification.java
+++ b/sandbox/travelsample/launchers/notification-rmi/src/main/java/scatours/notification/Notification.java
@@ -20,7 +20,7 @@
package scatours.notification;
public interface Notification {
-
- boolean notify(String accountID, String subject, String message);
+
+ boolean notify(String accountID, String subject, String message);
}