Skip to content

Commit 8a78864

Browse files
committed
Polish "Explain how to disable/configure the ActiveMQ embedded broker"
See gh-28183
1 parent 0c5f0ef commit 8a78864

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5846,19 +5846,18 @@ NOTE: If you use `spring-boot-starter-activemq`, the necessary dependencies to c
58465846

58475847
ActiveMQ configuration is controlled by external configuration properties in `+spring.activemq.*+`.
58485848

5849-
By default an embedded broker is started, if you don't disable it explicitly and don't set the broker url. The broker
5850-
url is then autoconfigured to use the https://activemq.apache.org/vm-transport-reference.html[VM transport], which starts
5851-
an ActiveMQ broker in the same JVM instance.
5849+
By default, ActiveMQ is auto-configured to use the https://activemq.apache.org/vm-transport-reference.html[VM transport], which starts a broker embedded in the same JVM instance.
5850+
5851+
You can disable the embedded broker by configuring the configprop:spring.activemq.in-memory[] property, as shown in the following example:
58525852

5853-
You can disable the embedded broker by declaring the following section in `application.properties`:
58545853
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]
58555854
----
58565855
spring:
58575856
activemq:
58585857
in-memory: false
58595858
----
58605859

5861-
or by setting the broker url explicitly:
5860+
The embedded broker will also be disabled if you configure the broker URL, as shown in the following example:
58625861

58635862
[source,yaml,indent=0,configprops,configblocks]
58645863
----
@@ -5869,6 +5868,8 @@ or by setting the broker url explicitly:
58695868
password: "secret"
58705869
----
58715870

5871+
If you want to take full control over the embedded broker, refer to https://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html[the ActiveMQ documentation] for further information.
5872+
58725873
By default, a `CachingConnectionFactory` wraps the native `ConnectionFactory` with sensible settings that you can control by external configuration properties in `+spring.jms.*+`:
58735874

58745875
[source,yaml,indent=0,configprops,configblocks]

0 commit comments

Comments
 (0)