diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-05 21:14:49 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-05 21:14:49 +0000 |
commit | 8c049462ff6387d8c3f69f4e42a4c4b36e38a90c (patch) | |
tree | 3e6b1ec1ab2e2a724d9228ca55052394c3034060 /sandbox/travelsample/launchers/notification-jms/src | |
parent | 68c3920fc0ba41c6a9ebf062bd41e5ebf647e51b (diff) |
Format the code
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833174 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/launchers/notification-jms/src')
3 files changed, 20 insertions, 21 deletions
diff --git a/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/JMSBrokerLauncher.java b/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/JMSBrokerLauncher.java index 7d063ca865..929eb78431 100644 --- a/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/JMSBrokerLauncher.java +++ b/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/JMSBrokerLauncher.java @@ -23,16 +23,16 @@ import org.apache.activemq.broker.BrokerService; public class JMSBrokerLauncher { public static void main(String[] args) throws Exception { - final BrokerService jmsBroker = new BrokerService(); - jmsBroker.setPersistent(false); - jmsBroker.setUseJmx(false); - jmsBroker.addConnector("tcp://localhost:61619"); - jmsBroker.start(); + final BrokerService jmsBroker = new BrokerService(); + jmsBroker.setPersistent(false); + jmsBroker.setUseJmx(false); + jmsBroker.addConnector("tcp://localhost:61619"); + jmsBroker.start(); - System.out.println("JMS Message Broker started"); - System.out.println("Press enter to shutdown."); - System.in.read(); + System.out.println("JMS Message Broker started"); + System.out.println("Press enter to shutdown."); + System.in.read(); - jmsBroker.stop(); + jmsBroker.stop(); } - } +} diff --git a/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java b/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java index c6ee50e2e8..c2ffda0725 100644 --- a/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java +++ b/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java @@ -31,20 +31,19 @@ import scatours.notification.Notification; public class NotificationJMSLauncher {
public static void main(String[] args) throws Exception {
- SCAContribution notificationContribution =
- locate("notification");
- SCAContribution notificationJMSContribution =
- locate("notification-jms");
+ SCAContribution notificationContribution = locate("notification");
+ SCAContribution notificationJMSContribution = locate("notification-jms");
- SCANode node = SCANodeFactory.newInstance().createSCANode(
- "notification-jms.composite", notificationContribution, notificationJMSContribution);
+ SCANode node =
+ SCANodeFactory.newInstance().createSCANode("notification-jms.composite",
+ notificationContribution,
+ notificationJMSContribution);
try {
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-jms/src/main/java/scatours/notification/Notification.java b/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/notification/Notification.java index 79706fcc9d..020e1e40db 100644 --- a/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/notification/Notification.java +++ b/sandbox/travelsample/launchers/notification-jms/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); } |