exchanging new version yang models on firmware upgrade
[oam/tr069-adapter.git] / acs / nbi / src / main / java / org / commscope / tr069adapter / acs / nbi / impl / DeviceRPCResponseForwarder.java
index 72f97a5..4971056 100644 (file)
@@ -20,7 +20,6 @@ package org.commscope.tr069adapter.acs.nbi.impl;
 \r
 import static org.commscope.tr069adapter.acs.common.utils.AcsConstants.NBI_OP_RESULT_CF;\r
 import static org.commscope.tr069adapter.acs.common.utils.AcsConstants.NBI_OP_RESULT_Q;\r
-\r
 import org.commscope.tr069adapter.acs.common.DeviceRPCResponse;\r
 import org.commscope.tr069adapter.acs.nbi.mapper.service.DeviceEventsMapperNotificationService;\r
 import org.slf4j.Logger;\r
@@ -41,17 +40,13 @@ public class DeviceRPCResponseForwarder {
   @JmsListener(destination = NBI_OP_RESULT_Q, containerFactory = NBI_OP_RESULT_CF)\r
   @Transactional(rollbackFor = Exception.class)\r
   public void onMessage(DeviceRPCResponse opResult) {\r
-    try {\r
-      if (null != opResult) {\r
-        logger.debug("NBIOperationResult message is received for deviceId : {}, , OprationId: {}",\r
-            opResult.getDeviceDetails().getDeviceId(), opResult.getOperationId());\r
-        deviceEventsMapperNotificationService.processOperationResponse(opResult);\r
-        logger.debug("Successfully processed NBI operation result.");\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 != opResult) {\r
+      logger.debug("NBIOperationResult message is received for deviceId : {}, , OprationId: {}",\r
+          opResult.getDeviceDetails().getDeviceId(), opResult.getOperationId());\r
+      deviceEventsMapperNotificationService.processOperationResponse(opResult);\r
+      logger.debug("Successfully processed NBI operation result.");\r
+    } else {\r
+      logger.error("Null device response is received!!!");\r
     }\r
   }\r
 }\r