문제

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?

도움이 되었습니까?

해결책

No, it is not possible to get this information.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top