Skip to content

Which ConnectionFactory should be used in a Spring AMPQ case? #2469

Discussion options

You must be logged in to vote

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..

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kstojanovski-novatec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants