Examples of QueueEndpoint


Examples of org.apache.camel.component.queue.QueueEndpoint

    protected SenderComponent senderComponent = new SenderComponent();

    public void testCamelInvokingJbi() throws Exception {
        senderComponent.sendMessages(1);

        QueueEndpoint receiverEndpoint = (QueueEndpoint) camelContext.getEndpoint("queue:receiver");

        BlockingQueue<Exchange> queue = receiverEndpoint.getQueue();
        Exchange exchange = queue.poll(5, TimeUnit.SECONDS);

        assertNotNull("Camel Receiver queue should have received an exchange by now", exchange);

        log.debug("Receiver got exchange: " + exchange + " with body: " + exchange.getIn().getBody());
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.