© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. DeinumSpring Boot 3 Recipeshttps://doi.org/10.1007/979-8-8688-0113-6_8

8. Spring Messaging

Marten Deinum1  
(1)
Meppel, Drenthe, The Netherlands
 

The Spring Portfolio provides extensive support for integrating with various messaging systems. From a fairly simple JMS API to RabbitMQ and Kafka. Spring Boot provides auto-configuration when these frameworks and technologies are detected.

8-1. Configure JMS

Problem

You want to use JMS in a Spring Boot application and need to connect to the JMS broker.

Solution

Spring Boot supports auto-configuration for ActiveMQ and Artemis. By adding one of those libraries and setting some properties, the spring.activemq or spring.artemis ...

Get Spring Boot 3 Recipes: A Problem-Solution Approach for Java Microservices and Cloud-Native Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.