System.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
SCAContribution notificationContribution = locate("notification");
SCAContribution notificationEJBContribution = locate("notification-ejb");
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");
String accountID = "1234";
String subject = "Holiday payment taken";
String message = "Payment of £102.37 accepted...";
notification.notify(accountID, subject, message);
System.out.println("Node started - Press enter to shutdown.");
System.in.read();
node.stop();
}