Package org.apache.tuscany.sca.node

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


    private static void runCarAutowire() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/carbookings3-client.composite",
                                                       locate("usingsca"));

        node.start();

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

        node.stop();
View Full Code Here


    private static void runCarPartner() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/carbookings1-client.composite",
                                                       locate("usingsca"));

        node.start();

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

        node.stop();
View Full Code Here

    private static void runCarWireElement() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/carbookings2-client.composite",
                                                       locate("usingsca"));

        node.start();

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

        node.stop();
View Full Code Here

    private static void runComplexPropertyElement() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/orders1-client.composite",
                                                       locate("usingsca"));

        node.start();

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

        node.stop();
View Full Code Here

    private static void runComplexPropertyType() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/orders2-client.composite",
                                                       locate("usingsca"));

        node.start();

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

        node.stop();
View Full Code Here

    private static void runCurrencyConverter() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/converter-client.composite",
                                                       locate("usingsca"));

        node.start();

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

        node.stop();
View Full Code Here

        SCANode toursNode =
            SCANodeFactory.newInstance().createSCANode("test-clients/toursdomain-client.composite",
                                                       locate("usingsca"));

        hotelsNode.start();
        toursNode.start();

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

    private static void runTripAutowire() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/bookings3-client.composite",
                                                       locate("usingsca"));

        node.start();

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

        node.stop();
View Full Code Here

    private static void runTripBooking() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/bookings1-client.composite",
                                                       locate("usingsca"));

        node.start();

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

        node.stop();
View Full Code Here

    private static void runTripWireElement() throws Exception {
        SCANode node =
            SCANodeFactory.newInstance().createSCANode("test-clients/bookings2-client.composite",
                                                       locate("usingsca"));

        node.start();

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

        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.