Package org.osoa.sca

Examples of org.osoa.sca.CompositeContext.locateService()


        addExtension("RubyContainer", scdl);
        setApplicationSCDL(HelloWorldService.class, "META-INF/sca/default.scdl");
        super.setUp();

        CompositeContext context = CurrentCompositeContext.getContext();
        helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldComponent");
    }

    public void testHelloWorld() throws Exception {
        assertEquals("Hello to petra from the Ruby World!", helloWorldService.sayHello("petra"));
    }
View Full Code Here


     * @return
     */
    protected WSDLInteropTestDocLitPortType locateInteropDocService() {

        CompositeContext compositeContext = CurrentCompositeContext.getContext();
        return compositeContext.locateService(WSDLInteropTestDocLitPortType.class, "RemoteInteropDocService");

    }

    /**
     * test echo void
View Full Code Here

        addExtension("test.exts", getClass().getClassLoader()
            .getResource("META-INF/tuscany/test-extensions.scdl"));

        super.setUp();
        CompositeContext compositeContext = CurrentCompositeContext.getContext();
        serviceProxy = compositeContext.locateService(Object.class, "webserviceXSQ");
    }

}
View Full Code Here

        if (interopLocation == null)
            interopLocation = "Remote";

        CompositeContext compositeContext = CurrentCompositeContext.getContext();

        return (DocTestPortType) compositeContext.locateService(DocTestPortType.class, interopLocation + "InteropDocService");
    }

}
View Full Code Here

        setApplicationSCDL(getClass(), "META-INF/sca/default.scdl");
        addExtension("test-extensions", getClass().getClassLoader()
            .getResource("META-INF/tuscany/test-extensions.scdl"));
        super.setUp();
        CompositeContext context = CurrentCompositeContext.getContext();
        client = context.locateService(Client.class, "Client");
    }
}
View Full Code Here

     * @return
     */
    protected WSDLInteropTestDocLitPortType locateInteropDocService() {

        CompositeContext compositeContext = CurrentCompositeContext.getContext();
        return compositeContext.locateService(WSDLInteropTestDocLitPortType.class, "RemoteInteropDocService");

    }

    /**
     * test echo void
View Full Code Here

        setApplicationSCDL(getClass().getClassLoader().getResource("META-INF/sca/default.scdl"));

        super.setUp();

        CompositeContext context = CurrentCompositeContext.getContext();
        helloWorldRmiService = context.locateService(HelloWorldRmiService.class,
                                                     "HelloWorldRmiServiceComponent");
    }


    protected void tearDown() throws Exception {
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.