Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Problema ao definir Dead Letter Exchange

Estou configurando a Dead Letter Exchange da seguinte forma:

    @Bean
    public Queue eventsQueue() {
        return QueueBuilder.durable(eventsQueueName)
                .deadLetterExchange(eventsDlxName)
                .build();
    }

E estou tomando esse erro, alguém já passou por isso?

2023-07-23 03:21:36.481 ERROR 73892 --- [ 127.0.0.1:5672] o.s.a.r.c.CachingConnectionFactory : Shutdown Signal: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'x-dead-letter-exchange' for queue 'events' in vhost '/': received the value 'events.dlx' of type 'longstr' but current is none, class-id=50, method-id=10)

1 resposta
solução!

Pessoal, como essa configuração de DLQ foi adicionada depois da criação da fila era necessário apagar a fila e criar novamente para que a configuração fosse aplicada.