October 2018
Intermediate to advanced
982 pages
23h 29m
English
The spring-amqp module provides a RabbitTemplate class, which abstracts high-level RabbitMQ driver classes. It improves the developer performance and makes the application void of bugs because the Spring modules are a very well-tested set of codes. We will use the convertAndSend() function which permits to pass exchange, the routing key, and the message object as parameters. Remember this function uses Spring converters to convert our model class into a JSON string.
There are a lot of overloaded functions for convertAndSend(), and depending on the use case, others could be more appropriate. We will use the simple one as we saw before.
Let's see the piece of code which sends the message to the broker: ...
Read now
Unlock full access