Examples of SedaConsumer


Examples of org.apache.camel.component.seda.SedaConsumer

    private static final AtomicBoolean CALLED = new AtomicBoolean();

    public void testDeadLetterChannelAlwaysHandled() throws Exception {
        // need to set exception handler manually to work around an issue configuring from uri
        SedaConsumer seda = (SedaConsumer) context.getRoute("foo").getConsumer();
        seda.setExceptionHandler(new MyExceptionHandler());

        getMockEndpoint("mock:foo").expectedMessageCount(1);
        getMockEndpoint("mock:bar").expectedMessageCount(1);
        getMockEndpoint("mock:dead").expectedMessageCount(1);
        getMockEndpoint("mock:result").expectedMessageCount(0);
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.