Skip to content

Improve Extensibility of RepublishMessageRecovererWithConfirms by supporting SpEL expressions #2590

Closed
@DiogoPDias

Description

@DiogoPDias

Expected Behavior

It would be great if we could configure the errorExchange and the errorRoutingKey on RepublishMessageRecovererWithConfirms like it was done in RepublishMessageRecoverer by supporting SpEL expressions for those parameters.

Current Behavior

Right now, RepublishMessageRecovererWithConfirms does not support SpEL expressions on errorExchange and the errorRoutingKey, we can only pass the exchange and the routingKey at initiation, limiting the possibility of changing those values at runtime.

Context

Has it was done in this #1527 to support SpEL expressions for the class RepublishMessageRecoverer, we would like to use the RepublishMessageRecovererWithConfirms but with SpEL expression to define the errorRoutingKey dynamically.
We use one RepublishMessageRecovererWithConfirms for multiple listeners, and with SpEL expressions, it would be possible to define different errorRoutingKeys for different queues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions