From 56a99a27086568f4e2ff35a7a0f199764988ed3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=98=89=E4=BC=9F?= <1724121454@qq.com> Date: Fri, 23 Apr 2021 14:17:05 +0800 Subject: [PATCH] =?UTF-8?q?ActiveMQ,=E5=8F=91=E9=80=81=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E4=B8=8D=E6=8A=9B=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/foreverwin/mesnac/anomaly/util/ActiveMQUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/util/ActiveMQUtil.java b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/util/ActiveMQUtil.java index 08168f7a..762efce9 100644 --- a/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/util/ActiveMQUtil.java +++ b/anomaly/src/main/java/com/foreverwin/mesnac/anomaly/util/ActiveMQUtil.java @@ -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) {