diff options
Diffstat (limited to 'sandbox/travelsample/launchers/notification-ws')
-rw-r--r-- | sandbox/travelsample/launchers/notification-ws/pom.xml | 7 | ||||
-rw-r--r-- | sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/sandbox/travelsample/launchers/notification-ws/pom.xml b/sandbox/travelsample/launchers/notification-ws/pom.xml index 4c03972565..5581df1aef 100644 --- a/sandbox/travelsample/launchers/notification-ws/pom.xml +++ b/sandbox/travelsample/launchers/notification-ws/pom.xml @@ -29,6 +29,13 @@ <name>Apache Tuscany SCA Tours Notification Web Service Launcher</name>
<dependencies>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>scatours-launcher-common</artifactId>
+ <version>${pom.version}</version>
+ </dependency>
+
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-node-api</artifactId>
diff --git a/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java b/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java index 08af2c3b58..4d7f1741fe 100644 --- a/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java +++ b/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java @@ -19,6 +19,8 @@ package scatours;
+import static scatours.launcher.LauncherUtil.locate;
+
import org.apache.tuscany.sca.node.SCAClient;
import org.apache.tuscany.sca.node.SCAContribution;
import org.apache.tuscany.sca.node.SCANode;
@@ -30,11 +32,9 @@ public class NotificationWSLauncher { public static void main(String[] args) throws Exception {
SCAContribution notificationContribution =
- new SCAContribution("notification",
- "../../contributions/notification/target/classes");
+ locate("notification");
SCAContribution notificationWSContribution =
- new SCAContribution("notification-ws",
- "../../contributions/notification-ws/target/classes");
+ locate("notification-ws");
SCANode node = SCANodeFactory.newInstance().createSCANode(
"notification-ws.composite", notificationContribution, notificationWSContribution);
|