Examples of CamelContextMapper


Examples of org.switchyard.component.camel.common.composer.CamelContextMapper

            public Message compose(CamelBindingData source, Exchange exchange) throws Exception {
                exchange.getContext().setProperty("composeInvoked", true, Scope.EXCHANGE);
                return super.compose(source, exchange);
            }
        };
        myMessageComposer.setContextMapper(new CamelContextMapper());
        QName serviceName = new QName(_serviceDomain.getName().getNamespaceURI(), "MessageComposerService");
        _serviceDomain.registerService(serviceName,
            new InOutService(),
            new OutboundHandler(bindingModel, (SwitchYardCamelContext) context, myMessageComposer, _serviceDomain) {
            {
View Full Code Here

Examples of org.switchyard.component.camel.common.composer.CamelContextMapper

    }

    @Test
    public void messageComposerComposeTest() throws InterruptedException {
        _mock.expectedBodiesReceived(Composer.DECOMPOSE_PREFIX + PAYLOAD);
        Exchange exchange = createExchange(new Composer().setContextMapper(new CamelContextMapper()));
        exchange.send(exchange.createMessage().setContent(PAYLOAD));
        _mock.assertIsSatisfied();
    }
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.