RabbitMQ 客户端失败重连
如题目所示,如果连接失败了,是要如何进行重连的?
还有confirm模式又是如何理解的?
Channel channel = connection.createChannel();
channel.confirmSelect();
// publish a topic
channel.basicPublish(exchangeName, routingKey,
MessageProperties.PERSISTENT_TEXT_PLAIN, message.getBytes());
channel.waitForConfirmsOrDie();
在线等,谢谢!