Examples of SCADomain


Examples of org.apache.tuscany.sca.host.embedded.SCADomain

    public void init() {
    }

    @Test
    public void testSayHello() throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("http://localhost", "/", "test.composite");

        Helloworld service = scaDomain.getService(Helloworld.class, "TestJEE/HelloworldServiceBean_HelloworldService");

        //assertEquals("hello beate", service.getGreetings("beate"));

        scaDomain.close();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.SCADomain

     * <p>
     * OSOA specification doesn't have such requirement.
     */
    @Test
    public void ASM60001_p() throws Exception {
        SCADomain domain = SCADomain.newInstance(LOCAL_DOMAIN_URI, "/", "compositeb.composite", "compositec.composite");
        BService bService = domain.getService(BService.class, "BComponent");
        Assert.assertEquals("some b component value", bService.getSomeProperty());
        CService cService = domain.getService(CService.class, "CComponent");
        Assert.assertEquals("Some State", cService.getState());
        domain.close();
        domain = null;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.SCADomain

     * <p>
     * OSOA specification doesn't have such requirement.
     */
    @Test(expected = ServiceRuntimeException.class)
    public void ASM60001_n() throws Exception {
        SCADomain domain =
            SCADomain.newInstance(LOCAL_DOMAIN_URI, "/", "composite.composite", "compositecopy.composite");
        domain.getService(BService.class, "BComponent");
        domain.getService(CService.class, "CComponent");
        domain.close();
        domain = null;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.SCADomain

   
    @Reference
    public HelloWorldService helloWorldService;

    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient3.composite");
       
        scaDomain.getService(HelloWorldClient3.class, "HelloWorldClient3").doit(args);

        scaDomain.close();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.SCADomain

    public void setContext(ComponentContext context) {
        clientContext = context;
    }
   
    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient4.composite");

        HelloWorldService helloWorldService = clientContext.getService(HelloWorldService.class, "helloWorldService");
        String value = helloWorldService.getGreetings("World");
        System.out.println(value);

        scaDomain.close();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.SCADomain

   
    @Reference
    public HelloWorldService helloWorldService;

    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient5.composite");
       
        scaDomain.close();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.SCADomain

import org.apache.tuscany.sca.host.embedded.SCADomain;

public class Launch {
    public static void main(String[] args) throws Exception {
        System.out.println("Starting ...");
        SCADomain scaDomain = SCADomain.newInstance("customer.composite");
        System.out.println("store.composite ready for big business !!!");
        System.in.read();
        System.out.println("Stopping ...");
        scaDomain.close();
        System.out.println();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.SCADomain

import org.apache.tuscany.sca.host.embedded.SCADomain;

public class Launch {
    public static void main(String[] args) throws Exception {
        System.out.println("Starting ...");
        SCADomain scaDomain = SCADomain.newInstance("customer.composite");
        System.out.println("customer.composite ready for big business !!!");
        System.out.println("url : http://localhost:8080/customer.html");
        System.in.read();
        System.out.println("Stopping ...");
        scaDomain.close();
        System.out.println();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.SCADomain

    public HelloWorldClient2() {
        client = this;
    }
   
    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient2.composite");
       
        client.doit(args);

        scaDomain.close();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.host.embedded.SCADomain

    public void setHelloWorldService(HelloWorldService service) {
        helloWorldService = service;
    }

    public  final static void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("helloworldwsclient.composite");

        String value = helloWorldService.getGreetings("World");
        System.out.println(value);

        scaDomain.close();
    }
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.