Skip to content

Factories created by LocalizedQueueConnectionFactory do not inherit customizations applied to defaultConnectionFactory #1384

Open
@vkochnev

Description

@vkochnev

Affects Version(s): 2.3.11

ConnectionFactory created by Spring Boot can be customized in several ways, ConnectionFactoryCustomizers, ConnectionNameStrategy to name a few. Also there is at least one post processor RabbitConnectionFactoryMetricsPostProcessor enabling metrics.

Code creating connection factories inside of LocalizedQueueConnectionFactory uses minimal configuration effectively ignoring all the customizations.
This issue might be considered to span across Spring Amqp, Spring Boot and Spring Cloud Stream projects.

I believe it can be solved with introduction of ConnectionFactoryBuilder bean (something similar to RestTemplateBuilder) which will produce connection factories customized in similar fashion, so LocalizedQueueConnectionFactory will be able to reuse it.
Or maybe there might be another approach I don't see.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions