Skip to content

Incompatibility between RabbitProperties from Spring Boot 3.4.0 and CachingConnectionFactory #2917

Closed
@oneiros-de

Description

@oneiros-de

In what version(s) of Spring AMQP are you seeing this issue?

3.2.0

Describe the bug

In Spring Boot 3.4.0 org.springframework.boot.autoconfigure.amqp.RabbitProperties#getAddresses() returns a List<String> while it previously returned a String.

This makes it incompatible with AbstractConnectionFactory.setAddresses which accepts a String.

With Spring Boot 3.3x and AMQP 3.2.0 one can write cachingConnectionFactory.setAddresses(rabbitProperties.getAddresses()); which is impossible with 3.4.0

Expected behavior

Either make setAddresses compatible with the new RabbitProperties or add a new method that is.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions