Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.SCANode.start()


    public static void main(String[] args) throws Exception {
        SCAContribution currencyContribution = locate("currency");

        SCANode node = SCANodeFactory.newInstance().createSCANode("currency-converter.composite", currencyContribution);
        node.start();

        System.out.println("Quick currency converter test");
        CurrencyConverter converter = ((SCAClient)node).getService(CurrencyConverter.class, "CurrencyConverter");
        System.out.println("USD -> GBP = " + converter.getExchangeRate("USD", "GBP"));
        System.out.println("100 USD = " + converter.convert("USD", "GBP", 100) + "GBP");
View Full Code Here


        SCANode node =
            SCANodeFactory.newInstance().createSCANode("currency-converter-rmi.composite",
                                                       currencyContribution,
                                                       currencyRMIContribution);
        node.start();

        System.out.println("Quick currency converter test");
        CurrencyConverter converter = ((SCAClient)node).getService(CurrencyConverter.class, "CurrencyConverter");
        System.out.println("USD -> GBP = " + converter.getExchangeRate("USD", "GBP"));
        System.out.println("100 USD = " + converter.convert("USD", "GBP", 100) + "GBP");
View Full Code Here

public class PaymentLauncher {

    public static void main(String[] args) throws Exception {
        SCANode node = SCANodeFactory.newInstance().createSCANode(null,
                                                              locate("payment-java-callback"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment1 = client.getService(Payment.class, "Payment1");
        Payment payment2 = client.getService(Payment.class, "Payment2");
        Payment paymentConfirm = client.getService(Payment.class, "PaymentConfirm");
View Full Code Here

    public static void main(String[] args) throws Exception {
        SCAContribution feedContribution = locate("feed-logger");

        SCANode node = SCANodeFactory.newInstance().createSCANode("feed-logger.composite", feedContribution);
        node.start();

        FeedLogger logger = ((SCAClient)node).getService(FeedLogger.class, "FeedLogger");
        logger.logFeeds(5);

        node.stop();
View Full Code Here

        SCANode node =
            SCANodeFactory.newInstance().createSCANode("currency-converter-corba.composite",
                                                       currencyContribution,
                                                       currencyCORBAContribution);
        node.start();

        System.out.println("Quick currency converter test");
        CurrencyConverter converter = ((SCAClient)node).getService(CurrencyConverter.class, "CurrencyConverter");
        System.out.println("USD -> GBP = " + converter.getExchangeRate("USD", "GBP"));
        System.out.println("100 USD = " + converter.convert("USD", "GBP", 100) + "GBP");
View Full Code Here

        SCANode node = SCANodeFactory.newInstance().createSCANode(null,
                                                                  locate("payment-bpel-process"),
                                                              locate("payment-bpel"),
                                                              locate("creditcard-payment-jaxb"),
                                                              locate("emailgateway"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment/paymentPartnerLink");

        System.out.println("Payment BPEL test");
View Full Code Here

    public static void main(String[] args) throws Exception {
        String rootDir = "../domainconfig/fullapp";
        DomainManagerLauncherBootstrap bootstrap = new DomainManagerLauncherBootstrap(rootDir);
        SCANode node = bootstrap.getNode();
        node.start();

        System.out.println("Domain manager started - Press enter to shutdown.");
        try {
            System.in.read();
        } catch (IOException e) {
View Full Code Here

        SCANode node =
            SCANodeFactory.newInstance().createSCANode("notification-ws.composite",
                                                       notificationContribution,
                                                       notificationWSContribution);
        node.start();

        System.out.println("Quick notification test");
        Notification notification = ((SCAClient)node).getService(Notification.class, "Notification");
        String accountID = "1234";
        String subject = "Holiday payment taken";
View Full Code Here

    public static void main(String[] args) throws Exception {
        SCAContribution helpContribution = locate("help-pages");

        SCANode node = SCANodeFactory.newInstance().createSCANode("help-pages.composite", helpContribution);
        node.start();

        System.out.println("Node started - Press enter to shutdown.");
        System.out.println();
        System.out.println("To view the help pages, use your Web browser to view:");
        System.out.println("    http://localhost:8085/help/index.html");
View Full Code Here

public class IntroducingTripsLauncher {

    public static void main(String[] args) throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANodeFromURL("http://localhost:9990/node-config/TripsNode");
        node.start();

        System.out.println("Node started - Press enter to shutdown.");
        try {
            System.in.read();
        } catch (IOException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.