Package org.osoa.sca

Examples of org.osoa.sca.CompositeContext


        toolServer = new SCATestCaseRunner(SCATestToolServerTest.class);
        toolServer.setUp();
        utilityServer = new SCATestCaseRunner(SCATestUtilityServerTest.class);
        utilityServer.setUp();
       
        CompositeContext cc = CurrentCompositeContext.getContext();
        System.out.println("Composite Name = " + cc.getName());
        System.out.println(CurrentCompositeContext.getContext());
        scaTestTool =
            (SCATestToolService)CurrentCompositeContext.getContext().locateService(SCATestToolService.class,
                                                                                   "SCATestToolWSReference");
        if (scaTestTool == null) {
View Full Code Here


    protected void setUp() throws Exception {
        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");

    }
View Full Code Here

        this.workContext = workContext;
        this.next = next;
    }

    public Message invoke(final Message msg) {
        final CompositeContext currentContext = CurrentCompositeContext.getContext();
        // Schedule the invocation of the next interceptor in a new Work instance
        try {
            workScheduler.scheduleWork(new Runnable() {
                public void run() {
                    workContext.setCurrentMessageId(null);
                    workContext.setCurrentCorrelationId(null);
                    CompositeContext oldContext = CurrentCompositeContext.getContext();
                    try {
                        BINDER.setContext(currentContext);
                        next.invoke(msg);
                    } catch (Exception e) {
                        // REVIEW uncomment when it is available
View Full Code Here

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

        super.setUp();

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

TOP

Related Classes of org.osoa.sca.CompositeContext

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.