Package org.openengsb.core.api.remote

Examples of org.openengsb.core.api.remote.OutgoingPort


    }

    @Test
    public void testWsPort_shouldBeExportedWithCorrectId() throws Exception {
        DefaultOsgiUtilsService utilsService = new DefaultOsgiUtilsService(getBundleContext());
        OutgoingPort serviceWithId = utilsService.getServiceWithId(OutgoingPort.class, "ws-json", 60000);
        assertNotNull(serviceWithId);
    }
View Full Code Here


    private final ExecutorService executor = Executors.newCachedThreadPool();

    @Override
    public void sendMethodCall(String portId, String destination, MethodCall call) {
        OutgoingPort port = getPort(portId);
        MethodCallMessage request = new MethodCallMessage(call, false);
        request.setDestination(destination);
        Runnable callHandler = new SendMethodCallTask(port, request);
        executor.execute(callHandler);
    }
View Full Code Here

        executor.execute(callHandler);
    }

    @Override
    public MethodResult sendMethodCallWithResult(String portId, String destination, MethodCall call) {
        OutgoingPort port = getPort(portId);
        MethodCallMessage request = new MethodCallMessage(call, true);
        request.setDestination(destination);
        MethodResultMessage requestResult = port.sendSync(request);
        return requestResult.getResult();
    }
View Full Code Here

        utilsService = getOsgiUtils();
    }

    @Test
    public void testJmsPortPresence_shouldBeExportedWithCorrectId() throws Exception {
        OutgoingPort serviceWithId = utilsService.getServiceWithId(OutgoingPort.class, "jms-json", 60000);
        assertNotNull(serviceWithId);
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.remote.OutgoingPort

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.