Package org.apache.tuscany.sca.node

Examples of org.apache.tuscany.sca.node.SCAContribution


    private SCANode toursNode;

    @Before
    public void startServer() throws Exception {
        hotelsNode = SCANodeFactory.newInstance().createSCANode("test-clients/hotelsdomain-client.composite",
                        new SCAContribution("using", "./target/classes"));
        hotelsNode.start();
        toursNode = SCANodeFactory.newInstance().createSCANode("test-clients/toursdomain-client.composite",
                       new SCAContribution("using", "./target/classes"));
        toursNode.start();
    }
View Full Code Here


    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
        creditCardNode =
            SCANodeFactory.newInstance()
                .createSCANode("creditcard.composite",
                               new SCAContribution("creditcard", "../creditcard-payment-jaxb/target/classes"));

        creditCardNode.start();

        paymentNode =
            SCANodeFactory.newInstance().createSCANode(null,
                                                       new SCAContribution("payment-spring", "./target/classes"),
                                                       new SCAContribution("payment-spring-test",
                                                                           "./target/test-classes"));

        paymentNode.start();
    }
View Full Code Here

    @Before
    public void startNode() throws Exception {
        node =
            SCANodeFactory.newInstance().createSCANode("calendar.composite",
                                                       new SCAContribution("calendar", "./target/classes"),
                                                       new SCAContribution("calendar-test", "./target/test-classes"));
        node.start();
    }
View Full Code Here

    @Before
    public void startServer() throws Exception {
        node =
            SCANodeFactory.newInstance()
                .createSCANode(null,
                               new SCAContribution("introducing-tours",
                                                   "../../contributions/introducing-tours/target/classes"),
                               new SCAContribution("introducing-trips",
                                                   "../../contributions/introducing-trips/target/classes"),
                               new SCAContribution("introducing-client",
                                                   "../../contributions/introducing-client/target/classes"));
        node.start();
    }
View Full Code Here

import scatours.notification.Notification;

public class NotificationRMILauncher {

    public static void main(String[] args) throws Exception {
        SCAContribution notificationContribution = locate("notification");
        SCAContribution notificationRMIContribution = locate("notification-rmi");

        SCANode node =
            SCANodeFactory.newInstance().createSCANode("notification-rmi.composite",
                                                       notificationContribution,
                                                       notificationRMIContribution);
View Full Code Here

import scatours.currencyconverter.CurrencyConverter;

public class CurrencyConverterWSLauncher {

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

        SCANode node =
            SCANodeFactory.newInstance().createSCANode("currency-converter-ws.composite",
                                                       currencyContribution,
                                                       currencyWSContribution);
View Full Code Here

import org.apache.tuscany.sca.node.SCANodeFactory;

public class BlogFeedLauncher {

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

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

        System.out.println("Node started - Press enter to shutdown.");
View Full Code Here

import scatours.notification.Notification;

public class NotificationCORBALauncher {

    public static void main(String[] args) throws Exception {
        SCAContribution notificationContribution = locate("notification");
        SCAContribution notificationCORBAContribution = locate("notification-corba");

        SCANode node =
            SCANodeFactory.newInstance().createSCANode("notification-corba.composite",
                                                       notificationContribution,
                                                       notificationCORBAContribution);
View Full Code Here

    public static void main(String[] args) throws Exception {
        System.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.RemoteInitialContextFactory");
        System.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");

        SCAContribution notificationContribution = locate("notification");
        SCAContribution notificationEJBContribution = locate("notification-ejb");

        SCANode node =
            SCANodeFactory.newInstance().createSCANode("notification-ejb.composite",
                                                       notificationContribution,
                                                       notificationEJBContribution);
View Full Code Here

        jmsBroker.setPersistent(false);
        jmsBroker.setUseJmx(false);
        jmsBroker.addConnector("tcp://localhost:61619");

        node1 = SCANodeFactory.newInstance().createSCANode("tours-appl.composite",
                    new SCAContribution("introducing-trips", "../introducing-trips/target/classes"),
                    new SCAContribution("buildingblocks", "../buildingblocks/target/classes"));

        node2 = SCANodeFactory.newInstance().createSCANode("tours-appl-client.composite",
                    new SCAContribution("buildingblocks-client", "./target/classes"));

        jmsBroker.start();
        node1.start();
        node2.start();
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.node.SCAContribution

Copyright © 2018 www.massapicom. 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.