Package org.apache.tuscany.sca.node

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


            nodeC = nodeFactory.createSCANode("http://localhost:8087/nodeC", "http://localhost:9999");
            nodeC.addContribution("nodeC", cl.getResource("nodeC/"));
            nodeC.addToDomainLevelComposite(new QName("http://sample", "CalculatorC"));

           
            SCADomainFinder domainFinder = SCADomainFinder.newInstance();
            domain = domainFinder.getSCADomain("http://localhost:9999");
           
            domain.start();
           
            // get a reference to various services in the domain
            calculatorServiceA = nodeA.getDomain().getService(CalculatorService.class, "CalculatorServiceComponentA");
View Full Code Here


    }   
   
    @Test
    public void testDomainProxyFinder() throws Exception {
        // the domain proxy retrieved via the domain finder
        SCADomainFinder domainFinder = SCADomainFinder.newInstance();
        domainProxy = domainFinder.getSCADomain("http://localhost:9999");
        addServiceBDomainFinder = domainProxy.getService(AddService.class, "AddServiceComponentB");
 
        Assert.assertEquals(addServiceBDomainFinder.add(3, 2), 5.0);
       
        System.out.println(domainProxy.getDomainLevelComposite());
View Full Code Here

            nodeC = nodeFactory.createSCANode("nodeC", DEFAULT_DOMAIN_URI);
            nodeC.addContribution("nodeC", cl.getResource("nodeC/"));
            nodeC.deployComposite(new QName("http://sample", "Calculator"));
            nodeC.start();

            SCADomainFinder domainFinder = SCADomainFinder.newInstance();
            domainProxy = domainFinder.getSCADomain(DEFAULT_DOMAIN_URI);
           
            // get a reference to various services in the domain
            calculatorServiceA = nodeA.getDomain().getService(CalculatorService.class, "CalculatorServiceComponentA");
            calculatorServiceB = nodeB.getDomain().getService(CalculatorService.class, "CalculatorServiceComponentB");
           
View Full Code Here

            nodeC = nodeFactory.createSCANode("nodeC", DEFAULT_DOMAIN_URI);
            nodeC.addContribution("nodeC", cl.getResource("nodeC/"));
            nodeC.deployComposite(new QName("http://sample", "Calculator"));
            nodeC.start();

            SCADomainFinder domainFinder = SCADomainFinder.newInstance();
            domain = domainFinder.getSCADomain(DEFAULT_DOMAIN_URI);
           
            // get a reference to various services in the domain
            calculatorServiceA = nodeA.getDomain().getService(CalculatorService.class, "CalculatorServiceComponentA");
            calculatorServiceB = nodeB.getDomain().getService(CalculatorService.class, "CalculatorServiceComponentB");
           
View Full Code Here

TOP

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

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.