Improve Extensibility of RepublishMessageRecovererWithConfirms by supporting SpEL expressions #2590
Labels
ideal-for-user-contribution
An issue that would ideal for a user to get started with contributing.
in: rabbitmq
type: enhancement
Milestone
Expected Behavior
It would be great if we could configure the
errorExchange
and theerrorRoutingKey
onRepublishMessageRecovererWithConfirms
like it was done inRepublishMessageRecoverer
by supportingSpEL
expressions for those parameters.Current Behavior
Right now,
RepublishMessageRecovererWithConfirms
does not supportSpEL
expressions onerrorExchange
and theerrorRoutingKey
, 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 classRepublishMessageRecoverer
, we would like to use theRepublishMessageRecovererWithConfirms
but withSpEL
expression to define theerrorRoutingKey
dynamically.We use one
RepublishMessageRecovererWithConfirms
for multiple listeners, and withSpEL
expressions, it would be possible to define differenterrorRoutingKeys
for different queues.The text was updated successfully, but these errors were encountered: