Commit bf7fa4be authored by 赵啸非's avatar 赵啸非

更新下发消息为线程池发送

parent f748560b
...@@ -86,13 +86,11 @@ public class RabbitConfig { ...@@ -86,13 +86,11 @@ public class RabbitConfig {
public void confirm(CorrelationData correlationData, boolean ack, String cause) { public void confirm(CorrelationData correlationData, boolean ack, String cause) {
// 发送消息的时候发送的业务id // 发送消息的时候发送的业务id
log.info("发送消息id:{},ack:{}",correlationData.getId(),ack); log.info("发送消息id:{},ack:{}",correlationData.getId(),ack);
// 时候发送成功,即ACK
//log.info(ack);
// 发送失败的原因
// System.out.println(cause);
} }
}); });
rabbitTemplate.setReturnCallback(messageCallbackService);
/* rabbitTemplate.setReturnCallback(messageCallbackService); /* rabbitTemplate.setReturnCallback(messageCallbackService);
rabbitTemplate.setConfirmCallback(messageCallbackService);*/ rabbitTemplate.setConfirmCallback(messageCallbackService);*/
......
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