Fix usage generation in billing #477
Merged
tcdlpds
merged 5 commits from osh.silva/device-mgt-core:usage-11591
into master
2 months ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'osh.silva/device-mgt-core:usage-11591'
Deleting a branch is permanent. It CANNOT be undone. Continue?
fixes https://roadmap.entgra.net/issues/11591
String msg = "Error occurred while opening a connection to the data source";
log.info(msg, e);
throw new DeviceManagementException(msg, e);
} finally {
What's the reason for this?
} catch (SQLException e) {
String msg = "Error occurred while opening a connection to the data source";
log.info(msg, e);
throw new DeviceManagementException(msg, e);
Shouldn't we close the connection ?
This method is used inside another method where the connection is closed. If we close the connection in this method, the subsequent SQL queries will not execute because the connection will no longer be available.
If that is the case, do we need to open the connection here?
In other words, can't we remove "DeviceManagementDAOFactory.getConnection();" line?
yes this can be removed
b40c5a625d
into master 2 months agoReviewers
b40c5a625d
.