diff options
Diffstat (limited to 'sandbox/travelsample/launchers/notification-ejb')
2 files changed, 9 insertions, 10 deletions
diff --git a/sandbox/travelsample/launchers/notification-ejb/src/main/java/scatours/NotificationEJBLauncher.java b/sandbox/travelsample/launchers/notification-ejb/src/main/java/scatours/NotificationEJBLauncher.java index 880908a7a7..2d843e9ff9 100644 --- a/sandbox/travelsample/launchers/notification-ejb/src/main/java/scatours/NotificationEJBLauncher.java +++ b/sandbox/travelsample/launchers/notification-ejb/src/main/java/scatours/NotificationEJBLauncher.java @@ -36,18 +36,17 @@ public class NotificationEJBLauncher { System.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialContextFactory");
System.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
- SCAContribution notificationContribution =
- locate("notification");
- SCAContribution notificationEJBContribution =
- locate("notification-ejb");
+ SCAContribution notificationContribution = locate("notification");
+ SCAContribution notificationEJBContribution = locate("notification-ejb");
- SCANode node = SCANodeFactory.newInstance().createSCANode(
- "notification-ejb.composite", notificationContribution, notificationEJBContribution);
+ SCANode node =
+ SCANodeFactory.newInstance().createSCANode("notification-ejb.composite",
+ notificationContribution,
+ notificationEJBContribution);
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-ejb/src/main/java/scatours/notification/Notification.java b/sandbox/travelsample/launchers/notification-ejb/src/main/java/scatours/notification/Notification.java index 79706fcc9d..020e1e40db 100644 --- a/sandbox/travelsample/launchers/notification-ejb/src/main/java/scatours/notification/Notification.java +++ b/sandbox/travelsample/launchers/notification-ejb/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); } |