diff options
Diffstat (limited to 'sandbox/travelsample/launchers/currency-converter-corba')
2 files changed, 11 insertions, 4 deletions
diff --git a/sandbox/travelsample/launchers/currency-converter-corba/pom.xml b/sandbox/travelsample/launchers/currency-converter-corba/pom.xml index 4b53cd2d74..2d6871ba07 100644 --- a/sandbox/travelsample/launchers/currency-converter-corba/pom.xml +++ b/sandbox/travelsample/launchers/currency-converter-corba/pom.xml @@ -29,6 +29,13 @@ <name>Apache Tuscany SCA Tours Currency Converter CORBA 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/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.java b/sandbox/travelsample/launchers/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.java index f1bdbb852d..d18acc6df1 100644 --- a/sandbox/travelsample/launchers/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.java +++ b/sandbox/travelsample/launchers/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.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 CurrencyConverterCORBALauncher { public static void main(String[] args) throws Exception {
SCAContribution currencyCORBAContribution =
- new SCAContribution("currency-corba",
- "../../contributions/currency-corba/target/classes");
+ locate("currency-corba");
SCAContribution currencyContribution =
- new SCAContribution("currency",
- "../../contributions/currency/target/classes");
+ locate("currency");
SCANode node = SCANodeFactory.newInstance().createSCANode(
"currency-converter-corba.composite", currencyContribution, currencyCORBAContribution);
|