Search in sources :

Example 1 with DefaultContainerErrorHandler

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;
}
Also used : SimpleMessageListenerContainer(org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer) DefaultContainerErrorHandler(com.dell.cpsd.common.rabbitmq.context.builder.DefaultContainerErrorHandler) Bean(org.springframework.context.annotation.Bean)

Aggregations

DefaultContainerErrorHandler (com.dell.cpsd.common.rabbitmq.context.builder.DefaultContainerErrorHandler)1 SimpleMessageListenerContainer (org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer)1 Bean (org.springframework.context.annotation.Bean)1