diff options
Diffstat (limited to 'sandbox/travelsample/launchers/currency-converter-corba/src/main/java')
-rw-r--r-- | sandbox/travelsample/launchers/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.java | 8 |
1 files changed, 4 insertions, 4 deletions
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);
|