use of com.dell.cpsd.common.rabbitmq.context.builder.DefaultContainerErrorHandler in project fru-paqx-parent by dellemc-symphony.
the class ConsumerConfig method fruRequestListenerContainer.
@Bean
SimpleMessageListenerContainer fruRequestListenerContainer() {
SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();
container.setConnectionFactory(rabbitConnectionFactory);
container.setAcknowledgeMode(AcknowledgeMode.AUTO);
container.setQueues(responseQueue);
container.setAdviceChain(new Advice[] { retryPolicyAdvice() });
container.setMessageListener(fruMessageListener());
container.setErrorHandler(new DefaultContainerErrorHandler("fruRequestListenerContainer"));
return container;
}
Aggregations