diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-05 19:32:26 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-05 19:32:26 +0000 |
commit | 18d8aa3401326d927bbb0665e25dd0f2cdce92fd (patch) | |
tree | 0ae9e8d37b818600d4f7f3dcdf6a736f2060033d /sandbox/travelsample/launchers/notification-jms | |
parent | c258d9427a37bbd1f152483267920514ebb18e0a (diff) |
Introduce a LauncherUtil to locate contributions by name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833142 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/launchers/notification-jms')
-rw-r--r-- | sandbox/travelsample/launchers/notification-jms/pom.xml | 7 | ||||
-rw-r--r-- | sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/sandbox/travelsample/launchers/notification-jms/pom.xml b/sandbox/travelsample/launchers/notification-jms/pom.xml index 4057986830..23ee3a92b8 100644 --- a/sandbox/travelsample/launchers/notification-jms/pom.xml +++ b/sandbox/travelsample/launchers/notification-jms/pom.xml @@ -29,6 +29,13 @@ <name>Apache Tuscany SCA Tours Notification JMS 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-jms/src/main/java/scatours/NotificationJMSLauncher.java b/sandbox/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java index c0d6b5742e..c6ee50e2e8 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 @@ -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 NotificationJMSLauncher { public static void main(String[] args) throws Exception {
SCAContribution notificationContribution =
- new SCAContribution("notification",
- "../../contributions/notification/target/classes");
+ locate("notification");
SCAContribution notificationJMSContribution =
- new SCAContribution("notification-jms",
- "../../contributions/notification-jms/target/classes");
+ locate("notification-jms");
SCANode node = SCANodeFactory.newInstance().createSCANode(
"notification-jms.composite", notificationContribution, notificationJMSContribution);
|