@RabbitListener(queues="XYZ")
public void rabbitMsgReceiver(@Payload final UserProfile up, Message msg, Channel channel) {
}
If the message that is received is not a valid JSON of UserProfile
, then ListenerExecutionFailedException
occurs and the message goes to the
unack state. How can I send the message into the dead letter queue?