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