(Quick Reference)
replyTo
Purpose
Sets the replyTo queue name.
Examples
rabbitMessagePublisher.send {
routingKey = "example.queue"
replyTo = "reply.queue"
body = "test message"
}
Description
Setting the replyTo property of the message lets the consumer know that the publisher expects a response to the message. The value of this property should be an existent queue the client is consuming on.
This property is automatically set when the RabbitMessagePublisher.rpc()
method is used, and the consumer has access to this property to reply to the message.