ActiveMQ,发送消息失败不抛异常

master
赵嘉伟 4 years ago
parent c667bd4a76
commit 56a99a2708

@ -1,6 +1,5 @@
package com.foreverwin.mesnac.anomaly.util;
import com.foreverwin.modular.core.exception.BaseException;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Value;
@ -42,7 +41,7 @@ public class ActiveMQUtil {
TextMessage textMessage = session.createTextMessage(sendMessage);
producer.send(textMessage);
}catch (Exception e){
throw new BaseException("发送消息失败"+e.getMessage());
// throw new BaseException("发送消息失败"+e.getMessage());
}finally {
try {
if (producer != null) {

Loading…
Cancel
Save