You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5846,19 +5846,18 @@ NOTE: If you use `spring-boot-starter-activemq`, the necessary dependencies to c
5846
5846
5847
5847
ActiveMQ configuration is controlled by external configuration properties in `+spring.activemq.*+`.
5848
5848
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:
5852
5852
5853
-
You can disable the embedded broker by declaring the following section in `application.properties`:
The embedded broker will also be disabled if you configure the broker URL, as shown in the following example:
5862
5861
5863
5862
[source,yaml,indent=0,configprops,configblocks]
5864
5863
----
@@ -5869,6 +5868,8 @@ or by setting the broker url explicitly:
5869
5868
password: "secret"
5870
5869
----
5871
5870
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
+
5872
5873
By default, a `CachingConnectionFactory` wraps the native `ConnectionFactory` with sensible settings that you can control by external configuration properties in `+spring.jms.*+`:
0 commit comments