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: src/reference/asciidoc/amqp.adoc
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -644,17 +644,13 @@ CAUTION: This connection factory is intended for long-lived connections, such as
644
644
It is not intended for short connection use, such as with a `RabbitTemplate` because of the overhead of invoking the REST API before making the connection.
645
645
Also, for publish operations, the queue is unknown, and the message is published to all cluster members anyway, so the logic of looking up the node has little value.
646
646
647
-
The following example configuration shows how to use Spring Boot's RabbitProperties to configure the factories:
647
+
The following example configuration shows how to configure the factories:
648
648
649
649
====
650
650
[source, java]
651
651
----
652
652
@Autowired
653
-
private RabbitProperties props;
654
-
655
-
private final String[] adminUris = { "http://host1:15672", "http://host2:15672" };
656
-
657
-
private final String[] nodes = { "rabbit@host1", "rabbit@host2" };
653
+
private ConfigurationProperties props;
658
654
659
655
@Bean
660
656
public ConnectionFactory defaultConnectionFactory() {
@@ -671,16 +667,17 @@ public ConnectionFactory queueAffinityCF(
0 commit comments