public void manageAck ( final Acknowledgment acknowledgment ) { final int smid = acknowledgment . getSmsId ( ) ; final SmsStatus smsStatus = acknowledgment . getSmsStatus ( ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Manage ack with : " + " - smid : " + smid + " - ack status : " + smsStatus ) ; } final Sms sms = daoService . getSms ( smid ) ; if ( sms != null ) { manageAck ( sms , smsStatus ) ; } else { logger . error ( "unable to find in db sms with : " + " - sms_id : " + smid + "In order to update is state in DB" + smid ) ; } }
Business layer to mange ack .