How can we make producer in spring amqp rabbitmq waiting after sending all messages and release upon receiving all?
问题 I am queuing all messages to rabbitmq queue and processing those on remote server. Below is my producer and reply handler in same class. public class AmqpAsynchRpcItemWriter<T> implements ItemWriter<T>, MessageListener { protected String exchange; protected String routingKey; protected String queue; protected String replyQueue; protected RabbitTemplate template; // Reply handler @Override public void onMessage(Message message) { try { String corrId = new String(message.getMessageProperties()