Package org.apache.tuscany.sca.node

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


                                                                     contributions);
       
        // force default binding on node2 to use a different port from node 1(which will default to 8080)
        ((NodeImpl)node2).getConfiguration().addBinding(WebServiceBinding.TYPE, "http://localhost:8081/");
        ((NodeImpl)node2).getConfiguration().addBinding(SCABinding.TYPE, "http://localhost:8081/");
        node2.start();
       
        ClientComponent local = node1.getService(ClientComponent.class, "DistributedClientComponent");
        ParameterObject po = new ParameterObject();
       
        try {
View Full Code Here


       
        String [] contributions = {"./target/classes"};
        Node node1 = NodeFactory.newInstance().createNode(URI.create("uri:default"),
                                                                     "org/apache/tuscany/sca/itest/interfaces/match/distributed/MatchDistributedClient.composite",
                                                                     contributions);
        node1.start();

        Node node2 = NodeFactory.newInstance().createNode(URI.create("uri:default"),
                                                                     "org/apache/tuscany/sca/itest/interfaces/match/distributed/MatchDistributedService.composite",
                                                                     contributions);
       
View Full Code Here

                                                                     contributions);
       
        // force default binding on node2 to use a different port from node 1(which will default to 8080
        ((NodeImpl)node2).getConfiguration().addBinding(WebServiceBinding.TYPE, "http://localhost:8081/");
        ((NodeImpl)node2).getConfiguration().addBinding(SCABinding.TYPE, "http://localhost:8081/");
        node2.start();
       
        SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("default"));
        ClientComponent local  = clientFactory.getService(ClientComponent.class, "LocalClientClientComponent");

        ParameterObject po = new ParameterObject();
View Full Code Here

        String [] contributions = {"./target/classes"};
       
        Node node3 = NodeFactory.newInstance().createNode(URI.create("uri:default"),
                "org/apache/tuscany/sca/itest/interfaces/match/distributed/MatchDistributedClientClient.composite",
                contributions);
        node3.start();
       
        SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("default"));
        ClientComponent clientClient  = clientFactory.getService(ClientComponent.class, "DistributedClientClientComponent");

        ParameterObject po = new ParameterObject();
View Full Code Here

    @Test
    public  void init() throws Exception {
        try{
        String location = ContributionLocationHelper.getContributionLocation("StockQuote.composite");
        Node node = NodeFactory.newInstance().createNode("StockQuote.composite", new Contribution("c1", location));
        node.start();
        node.stop();
        } catch (Exception e) {
            Assert.assertTrue(e.getMessage().contains("[JCA100006]"));
        }
    }
View Full Code Here

    public void testLocal() throws Exception {
        String [] contributions = {"./target/classes"};
        Node node1 = NodeFactory.newInstance().createNode(URI.create("tuscany:InerfaceMissmatchTestCase"),
                                                                     "org/apache/tuscany/sca/itest/interfaces/missmatch/local/MissmatchLocal.composite",
                                                                     contributions);
        node1.start();
       
        ClientComponent local = node1.getService(ClientComponent.class, "LocalClientComponent");
        ParameterObject po = new ParameterObject();
       
        try {
View Full Code Here

    public void testCallbackLocal() throws Exception {
        String [] contributions = {"./target/classes"};
        Node node1 = NodeFactory.newInstance().createNode(URI.create("tuscany:InerfaceMissmatchTestCase"),
                                                                     "org/apache/tuscany/sca/itest/interfaces/missmatch/local/MissmatchCallbackLocal.composite",
                                                                     contributions);
        node1.start();
       
        ClientComponent local = node1.getService(ClientComponent.class, "LocalClientComponent");
        ParameterObject po = new ParameterObject();
       
        try {
View Full Code Here

    
        String [] contributions = {"./target/classes"};
        Node node1 = NodeFactory.newInstance().createNode(URI.create("tuscany:InerfaceMissmatchTestCase"),
                                                                     "org/apache/tuscany/sca/itest/interfaces/missmatch/local/MissmatchRemoteable.composite",
                                                                     contributions);
        node1.start();
       
        ClientComponent local = node1.getService(ClientComponent.class, "LocalClientComponent");
        ParameterObject po = new ParameterObject();
       
        try {
View Full Code Here

       
        String [] contributions = {"./target/classes"};
        Node node1 = NodeFactory.newInstance().createNode(URI.create("tuscany:InerfaceMissmatchTestCase"),
                                                                     "org/apache/tuscany/sca/itest/interfaces/missmatch/distributed/MissmatchDistributedClient.composite",
                                                                     contributions);
        node1.start();

        Node node2 = NodeFactory.newInstance().createNode(URI.create("tuscany:InerfaceMissmatchTestCase"),
                                                                     "org/apache/tuscany/sca/itest/interfaces/missmatch/distributed/MissmatchDistributedService.composite",
                                                                     contributions);
        // for default binding on node2 to use a different port from node 1(which will default to 8080
View Full Code Here

                                                                     "org/apache/tuscany/sca/itest/interfaces/missmatch/distributed/MissmatchDistributedService.composite",
                                                                     contributions);
        // for default binding on node2 to use a different port from node 1(which will default to 8080
        ((NodeImpl)node2).getConfiguration().addBinding(WebServiceBinding.TYPE, "http://localhost:8081/");
        ((NodeImpl)node2).getConfiguration().addBinding(SCABinding.TYPE, "http://localhost:8081/");       
        node2.start();
       
        ClientComponent local = node1.getService(ClientComponent.class, "DistributedClientComponent");
        ParameterObject po = new ParameterObject();
       
        try {
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.