Rabbittemplate.convertandsend()将始终抛出异常,如果无法发布



我看到rabbittemplate.convertandsend((声明要投掷amqpexception。如果发布消息将不成功,或者应该采取额外的措施,例如,使用correlationConvertAndSend((以及rabbittemplate.confirmcallback。

出版给兔子的是异步;您只会获得立即失败的例外(例如无法连接到经纪人(。

出版商确认和退货是保证交付的。

最新更新