Skip to content

Commit cba1387

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 447a696 commit cba1387

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
@@ -823,10 +823,12 @@ public boolean isUsePublisherConnection() {
823823
}
824824

825825
/**
826-
* To avoid deadlocked connections, it is generally recommended to use
827-
* a separate connection for publishers and consumers (except when a publisher
828-
* is participating in a consumer transaction). Default 'false'; will change
829-
* to 'true' in 2.1.
826+
* To avoid deadlocked connections, it is generally recommended to use a separate
827+
* connection for publishers and consumers (except when a publisher is participating
828+
* in a consumer transaction). Default 'false'. When setting this to true, be careful
829+
* in that a {@link RabbitAdmin} that uses this template will declare queues on the
830+
* publisher connection; this may not be what you expect, especially with exclusive
831+
* queues that might be consumed in this application.
830832
* @param usePublisherConnection true to use a publisher connection.
831833
* @since 2.0.2
832834
*/

0 commit comments

Comments
 (0)