Skip to content

Commit f728235

Browse files
committed
Revert "Introduce Generic AMQP 1.0 client support"
This reverts commit 8dde82b, c388dc9 5b7f0f7, and 2d71ef9. See gh-49621
1 parent e927b4c commit f728235

72 files changed

Lines changed: 100 additions & 1678 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

buildSrc/src/main/java/org/springframework/boot/build/context/properties/DocumentConfigurationProperties.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ private void dataMigrationPrefixes(Config prefix) {
171171

172172
private void integrationPrefixes(Config prefix) {
173173
prefix.accept("spring.activemq");
174-
prefix.accept("spring.amqp");
175174
prefix.accept("spring.artemis");
176175
prefix.accept("spring.batch");
177176
prefix.accept("spring.integration");

documentation/spring-boot-docs/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ dependencies {
9494
implementation(project(path: ":loader:spring-boot-loader-tools"))
9595
implementation(project(path: ":module:spring-boot-actuator"))
9696
implementation(project(path: ":module:spring-boot-actuator-autoconfigure"))
97-
implementation(project(path: ":module:spring-boot-amqp"))
9897
implementation(project(path: ":module:spring-boot-cache"))
9998
implementation(project(path: ":module:spring-boot-cache-test"))
10099
implementation(project(path: ":module:spring-boot-data-cassandra"))

documentation/spring-boot-docs/src/docs/antora/modules/ROOT/pages/redirect.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,13 +1716,13 @@
17161716
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq[#features.messaging.amqp.rabbit]
17171717
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq[#messaging.amqp.rabbit]
17181718
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq[#messaging.amqp.rabbitmq]
1719-
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq.receiving[#boot-features-using-amqp-receiving]
1720-
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq.receiving[#features.messaging.amqp.receiving]
1721-
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq.receiving[#messaging.amqp.receiving]
1722-
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq.sending-stream[#messaging.amqp.sending-stream]
1723-
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq.sending[#boot-features-using-amqp-sending]
1724-
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq.sending[#features.messaging.amqp.sending]
1725-
* xref:reference:messaging/amqp.adoc#messaging.amqp.rabbitmq.sending[#messaging.amqp.sending]
1719+
* xref:reference:messaging/amqp.adoc#messaging.amqp.receiving[#boot-features-using-amqp-receiving]
1720+
* xref:reference:messaging/amqp.adoc#messaging.amqp.receiving[#features.messaging.amqp.receiving]
1721+
* xref:reference:messaging/amqp.adoc#messaging.amqp.receiving[#messaging.amqp.receiving]
1722+
* xref:reference:messaging/amqp.adoc#messaging.amqp.sending-stream[#messaging.amqp.sending-stream]
1723+
* xref:reference:messaging/amqp.adoc#messaging.amqp.sending[#boot-features-using-amqp-sending]
1724+
* xref:reference:messaging/amqp.adoc#messaging.amqp.sending[#features.messaging.amqp.sending]
1725+
* xref:reference:messaging/amqp.adoc#messaging.amqp.sending[#messaging.amqp.sending]
17261726
* xref:reference:messaging/amqp.adoc#messaging.amqp[#boot-features-amqp]
17271727
* xref:reference:messaging/amqp.adoc#messaging.amqp[#features.messaging.amqp]
17281728
* xref:reference:messaging/amqp.adoc#messaging.amqp[#messaging.amqp]

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/features/dev-services.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ The following service connections are currently supported:
8686
| javadoc:org.springframework.boot.activemq.autoconfigure.ActiveMQConnectionDetails[]
8787
| Containers named "symptoma/activemq" or "apache/activemq-classic"
8888

89-
| javadoc:org.springframework.boot.amqp.autoconfigure.AmqpConnectionDetails[]
90-
| Containers named "rabbitmq"
91-
9289
| javadoc:org.springframework.boot.artemis.autoconfigure.ArtemisConnectionDetails[]
9390
| Containers named "apache/activemq-artemis"
9491

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/messaging/amqp.adoc

Lines changed: 9 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,7 @@
33

44
The Advanced Message Queuing Protocol (AMQP) is a platform-neutral, wire-level protocol for message-oriented middleware.
55
The Spring AMQP project applies core Spring concepts to the development of AMQP-based messaging solutions.
6-
Spring Boot offers several conveniences for working with AMQP: generic AMQP 1.0 support is provided by the `spring-boot-starter-amqp` starter while specific RabbitMQ support is available via the `spring-boot-starter-rabbitmq` starter.
7-
8-
9-
10-
[[messaging.amqp.generic]]
11-
== Generic AMQP 1.0 Support
12-
13-
AMQP 1.0 is supported by several brokers and messaging services beyond RabbitMQ, including ActiveMQ, Azure Service Bus, and others.
14-
Spring AMQP provides {url-spring-amqp-docs}/amqp10-client.html[generic support for AMQP 1.0] via `org.springframework.amqp:spring-amqp-client` that is based on the https://github.com/apache/qpid-protonj2/blob/main/protonj2-client/README.md[Qpid ProtonJ2 Client Library].
15-
16-
AMQP configuration is controlled by external configuration properties in `+spring.amqp.*+`.
17-
For example, you might declare the following in your configuration:
18-
19-
[configprops,yaml]
20-
----
21-
spring:
22-
amqp:
23-
host: "localhost"
24-
port: 5672
25-
username: "admin"
26-
password: "secret"
27-
----
28-
29-
To configure javadoc:org.apache.qpid.protonj2.client.ConnectionOptions[connection options] of the auto-configured javadoc:org.springframework.amqp.client.AmqpConnectionFactory[], define a javadoc:org.springframework.boot.amqp.autoconfigure.ConnectionOptionsCustomizer[] bean.
30-
31-
[[messaging.amqp.generic.sending]]
32-
=== Sending a Message
33-
34-
Spring's javadoc:org.springframework.amqp.client.AmqpClient[] is auto-configured, and you can autowire it directly into your own beans, as shown in the following example:
35-
36-
include-code::MyBean[]
37-
38-
If a javadoc:org.springframework.amqp.support.converter.MessageConverter[] bean is defined, it is associated automatically with the auto-configured javadoc:org.springframework.amqp.client.AmqpClient[].
39-
If no such converter is defined and Jackson is available, javadoc:org.springframework.amqp.support.converter.JacksonJsonMessageConverter[] is used.
40-
41-
Client-specific settings can be configured as follows:
42-
43-
[configprops,yaml]
44-
----
45-
spring:
46-
amqp:
47-
client:
48-
default-to-address: "/queues/default_queue"
49-
completion-timeout: "500ms"
50-
----
51-
52-
To further configure the auto-configured javadoc:org.springframework.amqp.client.AmqpClient[], define a javadoc:org.springframework.boot.amqp.autoconfigure.AmqpClientCustomizer[] bean.
6+
Spring Boot offers several conveniences for working with AMQP through RabbitMQ, including the `spring-boot-starter-rabbitmq` starter.
537

548

559

@@ -95,8 +49,8 @@ TIP: See https://spring.io/blog/2010/06/14/understanding-amqp-the-protocol-used-
9549

9650

9751

98-
[[messaging.amqp.rabbitmq.sending]]
99-
=== Sending a Message
52+
[[messaging.amqp.sending]]
53+
== Sending a Message
10054

10155
Spring's javadoc:org.springframework.amqp.core.AmqpTemplate[] and javadoc:org.springframework.amqp.core.AmqpAdmin[] are auto-configured, and you can autowire them directly into your own beans, as shown in the following example:
10256

@@ -128,8 +82,8 @@ If there's a bean of type javadoc:org.springframework.amqp.rabbit.support.microm
12882

12983

13084

131-
[[messaging.amqp.rabbitmq.sending-stream]]
132-
=== Sending a Message To A Stream
85+
[[messaging.amqp.sending-stream]]
86+
== Sending a Message To A Stream
13387

13488
To send a message to a particular stream, specify the name of the stream, as shown in the following example:
13589

@@ -147,14 +101,14 @@ If you need to create more javadoc:org.springframework.rabbit.stream.producer.Ra
147101

148102

149103

150-
[[messaging.amqp.rabbitmq.sending-stream.ssl]]
151-
==== SSL
104+
[[messaging.amqp.sending-stream.ssl]]
105+
=== SSL
152106
To use SSL with RabbitMQ Streams, set configprop:spring.rabbitmq.stream.ssl.enabled[] to `true` or set configprop:spring.rabbitmq.stream.ssl.bundle[] to configure the xref:features/ssl.adoc#features.ssl.bundles[SSL bundle] to use.
153107

154108

155109

156-
[[messaging.amqp.rabbitmq.receiving]]
157-
=== Receiving a Message
110+
[[messaging.amqp.receiving]]
111+
== Receiving a Message
158112

159113
When the Rabbit infrastructure is present, any bean can be annotated with javadoc:org.springframework.amqp.rabbit.annotation.RabbitListener[format=annotation] to create a listener endpoint.
160114
If no javadoc:org.springframework.amqp.rabbit.listener.RabbitListenerContainerFactory[] has been defined, a default javadoc:org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory[] is automatically configured and you can switch to a direct container using the configprop:spring.rabbitmq.listener.type[] property.

documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/testing/testcontainers.adoc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ The following service connection factories are provided in the `spring-boot-test
122122
| javadoc:org.springframework.boot.activemq.autoconfigure.ActiveMQConnectionDetails[]
123123
| Containers named "symptoma/activemq" or javadoc:org.testcontainers.activemq.ActiveMQContainer[]
124124

125-
| javadoc:org.springframework.boot.amqp.autoconfigure.AmqpConnectionDetails[]
126-
| Containers of type javadoc:{url-testcontainers-rabbitmq-javadoc}/org.testcontainers.rabbitmq.RabbitMQContainer[]
127-
128125
| javadoc:org.springframework.boot.artemis.autoconfigure.ArtemisConnectionDetails[]
129126
| Containers of type javadoc:org.testcontainers.activemq.ArtemisContainer[]
130127

documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/messaging/amqp/generic/sending/MyBean.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/messaging/amqp/rabbitmq/receiving/MyBean.java renamed to documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/messaging/amqp/receiving/MyBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.docs.messaging.amqp.rabbitmq.receiving;
17+
package org.springframework.boot.docs.messaging.amqp.receiving;
1818

1919
import org.springframework.amqp.rabbit.annotation.RabbitListener;
2020
import org.springframework.stereotype.Component;

documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/messaging/amqp/rabbitmq/receiving/custom/MyBean.java renamed to documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/messaging/amqp/receiving/custom/MyBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.docs.messaging.amqp.rabbitmq.receiving.custom;
17+
package org.springframework.boot.docs.messaging.amqp.receiving.custom;
1818

1919
import org.springframework.amqp.rabbit.annotation.RabbitListener;
2020
import org.springframework.stereotype.Component;

documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/messaging/amqp/rabbitmq/receiving/custom/MyMessageConverter.java renamed to documentation/spring-boot-docs/src/main/java/org/springframework/boot/docs/messaging/amqp/receiving/custom/MyMessageConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package org.springframework.boot.docs.messaging.amqp.rabbitmq.receiving.custom;
17+
package org.springframework.boot.docs.messaging.amqp.receiving.custom;
1818

1919
import org.springframework.amqp.core.Message;
2020
import org.springframework.amqp.core.MessageProperties;

0 commit comments

Comments
 (0)