LOG.info("After " + max + " failed redelivery attempts Exchanges will be moved to deadLetterUri: " + recoverable.getDeadLetterUri());
// dead letter uri must be a valid endpoint
Endpoint endpoint = camelContext.getEndpoint(recoverable.getDeadLetterUri());
if (endpoint == null) {
throw new NoSuchEndpointException(recoverable.getDeadLetterUri());
}
// force MEP to be InOnly so when sending to DLQ we would not expect a reply if the MEP was InOut
deadLetterProcessor = new SendProcessor(endpoint, ExchangePattern.InOnly);
ServiceHelper.startService(deadLetterProcessor);
}