From a768714f22b241fdeaf3c7edc5fbd8b17da90b6d Mon Sep 17 00:00:00 2001 From: Jithmi004 Date: Mon, 25 Nov 2024 15:24:08 +0530 Subject: [PATCH] Log the connected TM server over the JMS connection during the start-up of the GW server --- .../java/org/wso2/carbon/apimgt/common/jms/JMSListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/apimgt/org.wso2.carbon.apimgt.common.jms/src/main/java/org/wso2/carbon/apimgt/common/jms/JMSListener.java b/components/apimgt/org.wso2.carbon.apimgt.common.jms/src/main/java/org/wso2/carbon/apimgt/common/jms/JMSListener.java index 495b2b7511ba..e479a1bbc628 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.common.jms/src/main/java/org/wso2/carbon/apimgt/common/jms/JMSListener.java +++ b/components/apimgt/org.wso2.carbon.apimgt.common.jms/src/main/java/org/wso2/carbon/apimgt/common/jms/JMSListener.java @@ -153,7 +153,9 @@ private boolean checkJMSConnection(JMSTaskManager stm) { } } } - + log.info("Connection successfully created towards the JMS provider for the listener: " + + stm.getJmsConsumerName() + "#" + stm.getDestinationJNDIName() + ". The connected JMS provider is " + + connection.toString().replace("\n", " | ")); return (connection != null); }