camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nuskhu <arnaud.cour...@cnamts.fr>
Subject Re: problem with exception in the recipientList
Date Tue, 22 Mar 2016 13:38:10 GMT
It's a valid endpoint, it's just throwing an exception to check the behaviour
of the recipiantList :

@Component
public class ThrowingConsumerB {

    private static final Logger LOGGER =
LoggerFactory.getLogger(ThrowingConsumerB.class);

    public String sayHello(@Body String message) {
        LOGGER.info("B");
        message += " B";
        LOGGER.debug(message);

        try {
            Thread.sleep(1000L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        throw new RuntimeException("BOUM !");

    }
}



--
View this message in context: http://camel.465427.n5.nabble.com/problem-with-exception-in-the-recipientList-tp5779499p5779508.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message