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.