Spring Boot - Messaging
Given this Spring Boot RabbitMQ listener configuration, what happens when message processing throws an exception?
@RabbitListener(queues = "mainQueue")
public void listen(String msg) {
if(msg.contains("fail")) throw new RuntimeException("Fail");
System.out.println("Processed: " + msg);
}
Assuming mainQueue has a DLQ configured, what is the expected behavior?