I am using apache camel and I want a route that would utilise a Dead Letter channel and Circuit Breaker.
If I have something like:
errorHandler(deadLetterChannel(destination)) from("direct:start").loadBalance() .circuitBreaker(2, 1000L, MyCustomException.class) .to("mock:result");
What happens is that the handler moves the message to the DLQ and the circuit breaker never moves to an open state.
My goal is to somehow keep the DLQ channel behaviour, but use the CB as well, which would eventually open and reject messages (from propagating to the destionation or to the normal processing).