exchanging new version yang models on firmware upgrade
[oam/tr069-adapter.git] / acs / nbi / src / main / java / org / commscope / tr069adapter / acs / nbi / impl / DeviceInformForwarder.java
index 6b86297..2833f4a 100644 (file)
@@ -20,7 +20,6 @@ package org.commscope.tr069adapter.acs.nbi.impl;
 \r
 import static org.commscope.tr069adapter.acs.common.utils.AcsConstants.NBI_NOTIFICATION_CF;\r
 import static org.commscope.tr069adapter.acs.common.utils.AcsConstants.NBI_NOTIFICATION_Q;\r
-\r
 import org.commscope.tr069adapter.acs.common.DeviceInform;\r
 import org.commscope.tr069adapter.acs.nbi.mapper.service.DeviceEventsMapperNotificationService;\r
 import org.slf4j.Logger;\r
@@ -41,19 +40,14 @@ public class DeviceInformForwarder {
   @JmsListener(destination = NBI_NOTIFICATION_Q, containerFactory = NBI_NOTIFICATION_CF)\r
   @Transactional(rollbackFor = Exception.class)\r
   public void onMessage(DeviceInform notification) {\r
-    try {\r
-      if (null != notification) {\r
-        logger.debug(\r
-            "DeviceNotification message is received for deviceId : {} , Notification Type(s): {}",\r
-            notification.getDeviceDetails().getDeviceId(), notification.getInformTypeList());\r
-        deviceEventsMapperNotificationService.processDeviceNotification(notification);\r
-        logger.debug("Successfully processed device notification.");\r
-      } else {\r
-        logger.error("Null device response is received!!!");\r
-      }\r
-    } catch (Exception e) {\r
-      logger.error("Error while processing the notification, Reason: {}", e.getMessage());\r
+    if (null != notification) {\r
+      logger.debug(\r
+          "DeviceNotification message is received for deviceId : {} , Notification Type(s): {}",\r
+          notification.getDeviceDetails().getDeviceId(), notification.getInformTypeList());\r
+      deviceEventsMapperNotificationService.processDeviceNotification(notification);\r
+      logger.debug("Successfully processed device notification.");\r
+    } else {\r
+      logger.error("Null device response is received!!!");\r
     }\r
   }\r
-\r
 }\r