body
Purpose
Body of the message to send to the RabbitMQ server.Examples
rabbitMessagePublisher.send { routingKey = "example.queue" body = "test message" }
The native RabbitMQ Grails plugin provides easily consumable messaging functionality.
(Quick Reference)
bodyPurposeBody of the message to send to the RabbitMQ server.ExamplesrabbitMessagePublisher.send { routingKey = "example.queue" body = "test message" } DescriptionThe body is a required part of the message to transmit. The RabbitMQ server expects the message to be in a byte array format, but the plugin attempts to handle the conversion of objects for you via the MessageConverter objects. You may assign any type of object to this property as long as there is a message converter available to convert the object to a byte array. |
Command LineConnection ConfigurationConsumer ConfigurationRabbit Message Publisher |