From 1a782a0069143286e9e386c628cd4e58c3b51e46 Mon Sep 17 00:00:00 2001 From: nash Date: Sat, 2 Jan 2010 09:24:41 +0000 Subject: Add/fix ant scripts for contents of travel sample services and launchers directories (TUSCANY-3398) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@895152 13f79535-47bb-0310-9956-ffa450edef68 --- sandbox/travelsample/launchers/blog-feed/build.xml | 27 +++------ sandbox/travelsample/launchers/build.xml | 67 ++++++++++++++++++++++ sandbox/travelsample/launchers/common/build.xml | 22 +++++++ .../launchers/currency-converter-corba/build.xml | 38 ++++++------ .../launchers/currency-converter-jms/build.xml | 34 ++++------- .../launchers/currency-converter-rmi/build.xml | 27 +++------ .../launchers/currency-converter-ws/build.xml | 27 +++------ .../launchers/currency-converter/build.xml | 27 +++------ .../travelsample/launchers/databinding/build.xml | 27 +++------ .../travelsample/launchers/feed-logger/build.xml | 27 +++------ .../launchers/fullapp-domain/build.xml | 33 ++++++++--- .../main/java/scatours/FullAppDomainLauncher.java | 1 + .../travelsample/launchers/fullapp-nodes/build.xml | 30 ++-------- sandbox/travelsample/launchers/fullapp/build.xml | 35 +++-------- .../travelsample/launchers/help-pages/build.xml | 27 +++------ .../travelsample/launchers/interaction/build.xml | 27 +++------ .../launchers/introducing-client/build.xml | 23 +------- .../launchers/introducing-domain/build.xml | 13 ++--- .../launchers/introducing-tours/build.xml | 5 +- .../launchers/introducing-trips/build.xml | 5 +- .../travelsample/launchers/introducing/build.xml | 27 +++------ sandbox/travelsample/launchers/jumpstart/build.xml | 32 +++-------- .../launchers/notification-corba/build.xml | 47 +++++++-------- .../launchers/notification-ejb/build.xml | 30 ++++------ .../launchers/notification-jms/build.xml | 40 +++++-------- .../src/main/java/scatours/JMSBrokerLauncher.java | 38 ------------ .../launchers/notification-rmi/build.xml | 29 ++++------ .../com/tuscanyscatours/smsgateway/SMSGateway.java | 30 ++++++++++ .../launchers/notification-ws/build.xml | 27 +++------ sandbox/travelsample/launchers/policy/build.xml | 27 +++------ sandbox/travelsample/launchers/pom.xml | 2 +- 31 files changed, 342 insertions(+), 509 deletions(-) create mode 100644 sandbox/travelsample/launchers/build.xml create mode 100644 sandbox/travelsample/launchers/common/build.xml delete mode 100644 sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/JMSBrokerLauncher.java create mode 100644 sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java (limited to 'sandbox/travelsample/launchers') diff --git a/sandbox/travelsample/launchers/blog-feed/build.xml b/sandbox/travelsample/launchers/blog-feed/build.xml index d243ed2dba..fff8bc212f 100644 --- a/sandbox/travelsample/launchers/blog-feed/build.xml +++ b/sandbox/travelsample/launchers/blog-feed/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/build.xml b/sandbox/travelsample/launchers/build.xml new file mode 100644 index 0000000000..b080b2c473 --- /dev/null +++ b/sandbox/travelsample/launchers/build.xml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/launchers/common/build.xml b/sandbox/travelsample/launchers/common/build.xml new file mode 100644 index 0000000000..c56323c786 --- /dev/null +++ b/sandbox/travelsample/launchers/common/build.xml @@ -0,0 +1,22 @@ + + + + + diff --git a/sandbox/travelsample/launchers/currency-converter-corba/build.xml b/sandbox/travelsample/launchers/currency-converter-corba/build.xml index 1dca0a680d..36012e293a 100644 --- a/sandbox/travelsample/launchers/currency-converter-corba/build.xml +++ b/sandbox/travelsample/launchers/currency-converter-corba/build.xml @@ -18,33 +18,27 @@ --> - - - - - - - - - - - + + + + + + - - - - + + + - - - - - - - diff --git a/sandbox/travelsample/launchers/currency-converter-jms/build.xml b/sandbox/travelsample/launchers/currency-converter-jms/build.xml index d5db4633a3..264e028dd1 100644 --- a/sandbox/travelsample/launchers/currency-converter-jms/build.xml +++ b/sandbox/travelsample/launchers/currency-converter-jms/build.xml @@ -18,23 +18,20 @@ --> - - - - - - - - - - - + + + + + + - - + + + @@ -42,16 +39,9 @@ - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/currency-converter-rmi/build.xml b/sandbox/travelsample/launchers/currency-converter-rmi/build.xml index 1d2fc52a26..814ed9a053 100644 --- a/sandbox/travelsample/launchers/currency-converter-rmi/build.xml +++ b/sandbox/travelsample/launchers/currency-converter-rmi/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/currency-converter-ws/build.xml b/sandbox/travelsample/launchers/currency-converter-ws/build.xml index 2fc1b8caf5..f4b21d0b55 100644 --- a/sandbox/travelsample/launchers/currency-converter-ws/build.xml +++ b/sandbox/travelsample/launchers/currency-converter-ws/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/currency-converter/build.xml b/sandbox/travelsample/launchers/currency-converter/build.xml index 7f1e5646d5..6b0f17f2db 100644 --- a/sandbox/travelsample/launchers/currency-converter/build.xml +++ b/sandbox/travelsample/launchers/currency-converter/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/databinding/build.xml b/sandbox/travelsample/launchers/databinding/build.xml index 5c1e4a1eea..3d80a6ca68 100644 --- a/sandbox/travelsample/launchers/databinding/build.xml +++ b/sandbox/travelsample/launchers/databinding/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/feed-logger/build.xml b/sandbox/travelsample/launchers/feed-logger/build.xml index e772c2f67a..e6bca9c15d 100644 --- a/sandbox/travelsample/launchers/feed-logger/build.xml +++ b/sandbox/travelsample/launchers/feed-logger/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/fullapp-domain/build.xml b/sandbox/travelsample/launchers/fullapp-domain/build.xml index 92957b88ab..1befc6413f 100644 --- a/sandbox/travelsample/launchers/fullapp-domain/build.xml +++ b/sandbox/travelsample/launchers/fullapp-domain/build.xml @@ -18,20 +18,37 @@ --> - + + - + - + + + + - - - + + + + + + + + + + - diff --git a/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java index 8dfbc947c8..21b0ae4cb3 100644 --- a/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java +++ b/sandbox/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java @@ -39,5 +39,6 @@ public class FullAppDomainLauncher { } catch (IOException e) { } + dm.getClass().getMethod("stop").invoke(dm); } } diff --git a/sandbox/travelsample/launchers/fullapp-nodes/build.xml b/sandbox/travelsample/launchers/fullapp-nodes/build.xml index c34d22faad..14a483b564 100644 --- a/sandbox/travelsample/launchers/fullapp-nodes/build.xml +++ b/sandbox/travelsample/launchers/fullapp-nodes/build.xml @@ -17,37 +17,15 @@ * under the License. --> - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/fullapp/build.xml b/sandbox/travelsample/launchers/fullapp/build.xml index 8061df32e3..d6e7e18dbb 100644 --- a/sandbox/travelsample/launchers/fullapp/build.xml +++ b/sandbox/travelsample/launchers/fullapp/build.xml @@ -18,39 +18,18 @@ --> - - - - - - - - - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/help-pages/build.xml b/sandbox/travelsample/launchers/help-pages/build.xml index 2bbb462dca..3f83d64e22 100644 --- a/sandbox/travelsample/launchers/help-pages/build.xml +++ b/sandbox/travelsample/launchers/help-pages/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/interaction/build.xml b/sandbox/travelsample/launchers/interaction/build.xml index 5a9591b712..e00596f636 100644 --- a/sandbox/travelsample/launchers/interaction/build.xml +++ b/sandbox/travelsample/launchers/interaction/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/introducing-client/build.xml b/sandbox/travelsample/launchers/introducing-client/build.xml index 51444507a8..4cd4a902f8 100644 --- a/sandbox/travelsample/launchers/introducing-client/build.xml +++ b/sandbox/travelsample/launchers/introducing-client/build.xml @@ -18,31 +18,14 @@ --> - - - - - - - - - - - + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/introducing-domain/build.xml b/sandbox/travelsample/launchers/introducing-domain/build.xml index 55334cf658..67d5fab24c 100644 --- a/sandbox/travelsample/launchers/introducing-domain/build.xml +++ b/sandbox/travelsample/launchers/introducing-domain/build.xml @@ -18,19 +18,16 @@ --> - + - + - + + + - - - - - diff --git a/sandbox/travelsample/launchers/introducing-tours/build.xml b/sandbox/travelsample/launchers/introducing-tours/build.xml index 2a2d774177..12482cf7b8 100644 --- a/sandbox/travelsample/launchers/introducing-tours/build.xml +++ b/sandbox/travelsample/launchers/introducing-tours/build.xml @@ -24,9 +24,10 @@ - + + + - diff --git a/sandbox/travelsample/launchers/introducing-trips/build.xml b/sandbox/travelsample/launchers/introducing-trips/build.xml index d0a9623966..463831c948 100644 --- a/sandbox/travelsample/launchers/introducing-trips/build.xml +++ b/sandbox/travelsample/launchers/introducing-trips/build.xml @@ -24,9 +24,10 @@ - + + + - diff --git a/sandbox/travelsample/launchers/introducing/build.xml b/sandbox/travelsample/launchers/introducing/build.xml index 7cf57f6217..3e3e839610 100644 --- a/sandbox/travelsample/launchers/introducing/build.xml +++ b/sandbox/travelsample/launchers/introducing/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/jumpstart/build.xml b/sandbox/travelsample/launchers/jumpstart/build.xml index 36de2730b2..fdfc12c92d 100644 --- a/sandbox/travelsample/launchers/jumpstart/build.xml +++ b/sandbox/travelsample/launchers/jumpstart/build.xml @@ -18,36 +18,18 @@ --> - - - - - - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/notification-corba/build.xml b/sandbox/travelsample/launchers/notification-corba/build.xml index b931f708d1..152918616a 100644 --- a/sandbox/travelsample/launchers/notification-corba/build.xml +++ b/sandbox/travelsample/launchers/notification-corba/build.xml @@ -18,39 +18,36 @@ --> - - - - - - - - - - - + + + + + + - - - - + + + + + - - - + + + - - - - - - - diff --git a/sandbox/travelsample/launchers/notification-ejb/build.xml b/sandbox/travelsample/launchers/notification-ejb/build.xml index 27d9ab92cd..cc7e8466d8 100644 --- a/sandbox/travelsample/launchers/notification-ejb/build.xml +++ b/sandbox/travelsample/launchers/notification-ejb/build.xml @@ -18,31 +18,25 @@ --> - + + + + + - - - - - - - - + + + - - + + + - - - - - - - diff --git a/sandbox/travelsample/launchers/notification-jms/build.xml b/sandbox/travelsample/launchers/notification-jms/build.xml index 1a0130aa82..0c1c4d2063 100644 --- a/sandbox/travelsample/launchers/notification-jms/build.xml +++ b/sandbox/travelsample/launchers/notification-jms/build.xml @@ -18,40 +18,28 @@ --> - - - - - - - - - - - + + + + + + - - - - - - + + + + - - + + - - - - - - - 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 deleted file mode 100644 index 929eb78431..0000000000 --- a/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/JMSBrokerLauncher.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package scatours; - -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(); - - System.out.println("JMS Message Broker started"); - System.out.println("Press enter to shutdown."); - System.in.read(); - - jmsBroker.stop(); - } -} diff --git a/sandbox/travelsample/launchers/notification-rmi/build.xml b/sandbox/travelsample/launchers/notification-rmi/build.xml index 70b5b18f77..addffd998e 100644 --- a/sandbox/travelsample/launchers/notification-rmi/build.xml +++ b/sandbox/travelsample/launchers/notification-rmi/build.xml @@ -18,31 +18,24 @@ --> - + + + + + - - - - - - - - + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java b/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java new file mode 100644 index 0000000000..4ce528fd23 --- /dev/null +++ b/sandbox/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java @@ -0,0 +1,30 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package com.tuscanyscatours.smsgateway; + +import java.rmi.Remote; +import java.rmi.RemoteException; + +/** + * A gateway to send SMS messages. + */ +public interface SMSGateway extends Remote { + boolean sendSMS(String fromNumber, String toNumber, String text) throws RemoteException; +} diff --git a/sandbox/travelsample/launchers/notification-ws/build.xml b/sandbox/travelsample/launchers/notification-ws/build.xml index 8be5783cb3..dff087b710 100644 --- a/sandbox/travelsample/launchers/notification-ws/build.xml +++ b/sandbox/travelsample/launchers/notification-ws/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/policy/build.xml b/sandbox/travelsample/launchers/policy/build.xml index ec8155b871..2e670f6983 100644 --- a/sandbox/travelsample/launchers/policy/build.xml +++ b/sandbox/travelsample/launchers/policy/build.xml @@ -18,31 +18,18 @@ --> - - - - - - - - - - - + + + + + - - + + - - - - - - - diff --git a/sandbox/travelsample/launchers/pom.xml b/sandbox/travelsample/launchers/pom.xml index a6191b4089..2e23f03b30 100644 --- a/sandbox/travelsample/launchers/pom.xml +++ b/sandbox/travelsample/launchers/pom.xml @@ -21,7 +21,7 @@ 4.0.0 org.apache.tuscany.sca - tuscany-scatours + scatours 1.0-SNAPSHOT ../pom.xml -- cgit v1.2.3