\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
@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