Commit 28823be8 by 周晓航

MQ的可靠性投递优化

parent e7851f72
...@@ -39,7 +39,9 @@ public class SendMQConfirmCallback { ...@@ -39,7 +39,9 @@ public class SendMQConfirmCallback {
public void convertAndSend(String exchange, String queueName, final Object object) { public void convertAndSend(String exchange, String queueName, final Object object) {
this.rabbitTemplate.convertAndSend(exchange, queueName, object); CorrelationData data = new CorrelationData();
data.setId("fisherman_" + System.currentTimeMillis());
this.rabbitTemplate.convertAndSend(exchange, queueName, object, data);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment