I have a spring rabbit listener
@Override
public void onMessage(Message message, Channel channel) {
//do something
channel.basicPublish("",queue name, null, SerializationUtils.serialize(r));
}
How rabbit will understand that this response is for my particular message? In case if I have a thousands of messages. What I need to do to link request and response? And is there a way to pass to the channel POJO without serialization? Thanks