© Marten Deinum 2018
Marten DeinumSpring Boot 2 Recipeshttps://doi.org/10.1007/978-1-4842-3963-6_9

9. Messaging

Marten Deinum1 
Meppel, Drenthe, The Netherlands

9.1 Configure JMS


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


Spring Boot supports auto-configuration for ActiveMQ1 and Artemis.2 Adding one of those JMS Providers together with setting some properties in, respectively, the spring.activemq and spring.artemis namespace will be all you need.

How It Works

By declaring a dependency of the JMS provider of your choice, Spring Boot will automatically configure the ConnectionFactory and strategy to look up destinations, the DestinationResolver, for your environment. This can also be done ...

Get Spring Boot 2 Recipes: A Problem-Solution Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.