Package org.apache.tuscany.sca.node

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


        node.start();

        Runnable client = ((SCAClient)node).getService(Runnable.class, "Orders1Client");
        client.run();

        node.stop();
    }

    private static void runComplexPropertyType() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/orders2-client.composite",
View Full Code Here


        node.start();

        Runnable client = ((SCAClient)node).getService(Runnable.class, "Orders2Client");
        client.run();

        node.stop();
    }

    private static void runCurrencyConverter() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/converter-client.composite",
View Full Code Here

        node.start();

        Runnable client = ((SCAClient)node).getService(Runnable.class, "ConverterClient");
        client.run();

        node.stop();
    }

    private static void runMultiDomain() throws Exception {
        SCANode hotelsNode =
            SCANodeFactory.newInstance().createSCANode("test-clients/hotelsdomain-client.composite",
View Full Code Here

        Runnable hotelsClient = ((SCAClient)hotelsNode).getService(Runnable.class, "HotelsDomainClient");
        hotelsClient.run();
        Runnable toursClient = ((SCAClient)toursNode).getService(Runnable.class, "ToursDomainClient");
        toursClient.run();

        toursNode.stop();
        hotelsNode.stop();
    }

    private static void runTripAutowire() throws Exception {
        SCANode node =
View Full Code Here

        node.start();

        Runnable client = ((SCAClient)node).getService(Runnable.class, "Bookings3Client");
        client.run();

        node.stop();
    }

    private static void runTripBooking() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/bookings1-client.composite",
View Full Code Here

        node.start();

        Runnable client = ((SCAClient)node).getService(Runnable.class, "Bookings1Client");
        client.run();

        node.stop();
    }

    private static void runTripWireElement() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/bookings2-client.composite",
View Full Code Here

        node.start();

        Runnable client = ((SCAClient)node).getService(Runnable.class, "Bookings2Client");
        client.run();

        node.stop();
    }
}
View Full Code Here

            String subject = "Holiday payment taken";
            String message = "Payment of £102.37 accepted...";
            notification.notify(accountID, subject, message);
            System.out.println("Notification sent");
        } finally {
            node.stop();
        }
    }
}
View Full Code Here

        Runnable client = ((SCAClient)node1).getService(Runnable.class, "TestClient/Runnable");
        client.run();

        node1.stop();
        node2.stop();
    }
}
View Full Code Here

        System.out.println("Payment Java test");
        System.out.println("\nSuccessful Payment - Status = \n\n" + payment.makePaymentMember("c-0", 100.00f));
        System.out.println("\n\nFailed Payment - Status = \n\n" + payment.makePaymentMember("c-1", 100.00f));
       
        node.stop();
    }
}
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.