No, it is not possible to get this information.
[RabbitMQ][Spring] How do I get access to the final exchange name?
-
24-06-2023 - |
Pregunta
For an Exchange-to-Exchange binding definintion
public class RabbitRecieveTest implements MessageListener {
@Override
public void onMessage(Message message) {
String firstExchange = message.getMessageProperties().getReceivedExchange();
}
}
returns the first exchange name.
Scenario:
Message published to firstExchange <---binding--->secondExchange<---binding---->someQueue<--- listener
I would like to get the name of the secondExchange. Is there a way?
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow