Which ConnectionFactory should be used in a Spring AMPQ case? #2469
-
The documentation lists three types of connection factories :
Two more can be seen in the sources:
The documentation says that the "PooledChannelConnectionFactory" should be used for most cases. Has the information about the default connection factory changed over time and the documentation needs to be adjusted or there is another reason why the PooledChannelConnectionFactory should be used for most cases? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The However, to use correlated publisher confirms (and returns) you have to use the On reflection, that documentation is too strongly worded.. |
Beta Was this translation helpful? Give feedback.
CachingConnectionFactory
was the first one available; Spring Boot auto configuration configures one.The
PooledChannelConnectionFactory
provides similar functionality (single connection, pooled channels) but is rather simpler.However, to use correlated publisher confirms (and returns) you have to use the
CachingConnectionFactory
.On reflection, that documentation is too strongly worded..