(Quick Reference)

autoConvert

Purpose

Toggles whether the message will be converted via the message converters when a response is received from an RPC message.

Examples

rabbitMessagePublisher.send {
    routingKey = "example.queue"
    body = "test message"
    autoConvert = true
}

Description

If this value is true, the same logic to convert messages in the message consumers is used to convert the received message from a byte array to a converted object type, if one exists. If this is false, the raw byte array is returned from the RPC response.