Package org.apache.tuscany.sca.node

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


            SCANodeFactory.newInstance().createSCANode("notification-jms.composite",
                                                       notificationContribution,
                                                       notificationJMSContribution);

        try {
            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


                                                   locate("common"),
                                                       locate("policy-client"),
                                                       locate("payment-java-policy"),
                                                       locate("trip-policy"));

        node1.start();

        SCANode node2 = SCANodeFactory.newInstance().createSCANode(null,
                                                                   locate("creditcard-payment-jaxb-policy"));

        node2.start();
View Full Code Here

        node1.start();

        SCANode node2 = SCANodeFactory.newInstance().createSCANode(null,
                                                                   locate("creditcard-payment-jaxb-policy"));

        node2.start();

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

        node1.stop();
View Full Code Here

    public static void main(String[] args) throws Exception {
        SCANode node = SCANodeFactory.newInstance().createSCANode(null,
                                                              locate("payment-java"),
                                                              locate("creditcard-payment-jaxb"));
        node.start();
       
        SCAClient client = (SCAClient)node;
        Payment payment = client.getService(Payment.class, "Payment");

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

                  
            SCANodeFactory nodeFactory = SCANodeFactory.newInstance();
           
            SCANode node = nodeFactory.createSCANode(chosenDeployableLocation, contributions);
           
            node.start();
            SCAClient client = (SCAClient)node;
            CalculatorService calculatorService =
                client.getService(CalculatorService.class, "CalculatorServiceComponentA");
           
            System.out.println("Add 2.0 + 3.0 + 3.0 = " + calculatorService.add(2.0, 3.0));
View Full Code Here

        logger.info("added contribution: " + contributionURL);
       
        if (started) {
            if (domainName == null) {
                scaNode.addToDomainLevelComposite((QName)null);
                scaNode.start();
            } else {
                scaNode.addToDomainLevelComposite((QName)null);
                scaNode.start();
            }
        }
View Full Code Here

            if (domainName == null) {
                scaNode.addToDomainLevelComposite((QName)null);
                scaNode.start();
            } else {
                scaNode.addToDomainLevelComposite((QName)null);
                scaNode.start();
            }
        }
    }

    public void start() {
View Full Code Here

                contributions[c] = new org.apache.tuscany.sca.node.launcher.Contribution(dependency.getURI(), dependency.getLocation());
            }
            SCANode runtimeNode = launcher.createNode("http://sample/" + node.getName(), print(runnable), contributions);
           
            // Start the node
            runtimeNode.start();
            runtimeNodes.add(runtimeNode);
        }
       
        System.out.println("Nodes are running, press enter to stop...");
        System.in.read();
View Full Code Here

        System.out.println("Starting the Sample SCA Calculator...");

        SCANodeFactory factory = SCANodeFactory.newInstance();
        SCANode node = factory.createSCANodeFromClassLoader("Calculator.composite", CalculatorServer.class.getClassLoader());
        node.start();

        if (timeout < 0) {
            System.out.println("Press Enter to Exit...");
            System.in.read();
        } else {
View Full Code Here

       
        NodeLauncher launcher = NodeLauncher.newInstance();
        SCANode node = launcher.createNode(null,
                                           new Contribution("assets", "../assets/target/tutorial-assets.jar"),
                                           new Contribution("warehouse", "../warehouse-spring/target/tutorial-warehouse-spring.jar"));
        node.start();
       
        System.out.println("Press a key to stop");
        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.