Skip to content

Commit 14f993f

Browse files
garyrussellartembilan
authored andcommitted
GH-1099: Fix Javadocs for Publisher Connection
Resolves #1099 **cherry-pick to 2.3.x, 2.2.x**
1 parent c96418f commit 14f993f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,10 +785,12 @@ public boolean isUsePublisherConnection() {
785785
}
786786

787787
/**
788-
* To avoid deadlocked connections, it is generally recommended to use
789-
* a separate connection for publishers and consumers (except when a publisher
790-
* is participating in a consumer transaction). Default 'false'; will change
791-
* to 'true' in 2.1.
788+
* To avoid deadlocked connections, it is generally recommended to use a separate
789+
* connection for publishers and consumers (except when a publisher is participating
790+
* in a consumer transaction). Default 'false'. When setting this to true, be careful
791+
* in that a {@link RabbitAdmin} that uses this template will declare queues on the
792+
* publisher connection; this may not be what you expect, especially with exclusive
793+
* queues that might be consumed in this application.
792794
* @param usePublisherConnection true to use a publisher connection.
793795
* @since 2.0.2
794796
*/

0 commit comments

Comments
 (0)