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
Resolves#1289
`RoutingConnectionFactory` did not support correlated confirms or returns.
Target factories (and default) must have the same settings.
**cherry-pick to 2.2.x, 2.1.x**
# Conflicts:
# src/reference/asciidoc/amqp.adoc
Copy file name to clipboardExpand all lines: spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/AbstractRoutingConnectionFactory.java
+39-3Lines changed: 39 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2019 the original author or authors.
2
+
* Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-rabbit/src/test/java/org/springframework/amqp/rabbit/core/RabbitTemplatePublisherCallbacksIntegrationTests2.java
+56-7Lines changed: 56 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2016-2019 the original author or authors.
2
+
* Copyright 2016-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: src/reference/asciidoc/amqp.adoc
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -630,6 +630,9 @@ Doing so enables, for example, listening to queues with the same name but in a d
630
630
631
631
For example, with lookup key qualifier `thing1` and a container listening to queue `thing2`, the lookup key you could register the target connection factory with could be `thing1[thing2]`.
632
632
633
+
IMPORTANT: The target (and default, if provided) connection factories must have the same settings for publisher confirms and returns.
634
+
See <<cf-pub-conf-ret>>.
635
+
633
636
[[queue-affinity]]
634
637
===== Queue Affinity and the `LocalizedQueueConnectionFactory`
635
638
@@ -1127,8 +1130,8 @@ The `Confirm` object is a simple bean with 2 properties: `ack` and `reason` (for
1127
1130
The reason is not populated for broker-generated `nack` instances.
1128
1131
It is populated for `nack` instances generated by the framework (for example, closing the connection while `ack` instances are outstanding).
1129
1132
1130
-
In addition, when both confirms and returns are enabled, the `CorrelationData` is populated with the returned message.
1131
-
It is guaranteed that this occurs before the future is set with the `ack`.
1133
+
In addition, when both confirms and returns are enabled, the `CorrelationData` is populated with the returned message, as long as the `CorrelationData` has a unique `id`; this is always the case, by default, starting with version 2.3.
1134
+
It is guaranteed that the returned message is set before the future is set with the `ack`.
1132
1135
1133
1136
See also <<scoped-operations>> for a simpler mechanism for waiting for publisher confirms.
0 commit comments