Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,9 @@ public void insertSMSRequestIds(String requestId, String senderAddress, Map<Stri
ps.addBatch();
}

gatewayRequestIds.clear();
queryString.setLength(0);

log.debug("sql query in insertSMSRequestIds : " + ps);

ps.executeBatch();
Expand Down Expand Up @@ -679,7 +682,7 @@ public void insertSMSRequestIds(String requestId, String senderAddress, Map<Stri
log.error("error in insertSMSRequestIds : ", e);
throw e;
} finally {

DbUtils.closeAllConnections(ps, con, null);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public boolean mediate(MessageContext messageContext) {

try {
new SMSMessagingService().insertSMSRequestIds(requestId, senderAddress, addressToOperatorRequestIdMap);
addressToOperatorRequestIdMap.clear();
} catch (BusinessException e) {
log.error("Error inserting request ids for send SMS operation", e);
return false;
Expand Down