mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Handle DB close within rollback transaction
This commit is contained in:
parent
f4b8e4bb74
commit
1b1b66fc29
@ -266,7 +266,7 @@ public class DeviceManagementServiceComponent {
|
|||||||
*/
|
*/
|
||||||
protected void unsetDeviceManager(DeviceMgtService deviceManager) {
|
protected void unsetDeviceManager(DeviceMgtService deviceManager) {
|
||||||
if (log.isDebugEnabled()) {
|
if (log.isDebugEnabled()) {
|
||||||
log.debug("Unsetting Device Management Service Provider : '" + deviceManager.getProviderType() + "'");
|
log.debug("Un setting Device Management Service Provider : '" + deviceManager.getProviderType() + "'");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
this.getPluginRepository().removeDeviceManagementProvider(deviceManager);
|
this.getPluginRepository().removeDeviceManagementProvider(deviceManager);
|
||||||
|
|||||||
@ -66,7 +66,6 @@ public class OperationDAOImpl implements OperationDAO {
|
|||||||
throw new OperationManagementDAOException("Error occurred while adding operation metadata", e);
|
throw new OperationManagementDAOException("Error occurred while adding operation metadata", e);
|
||||||
} finally {
|
} finally {
|
||||||
OperationManagementDAOUtil.cleanupResources(stmt, rs);
|
OperationManagementDAOUtil.cleanupResources(stmt, rs);
|
||||||
OperationManagementDAOFactory.closeConnection();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ CREATE TABLE IF NOT EXISTS DM_OPERATION (
|
|||||||
CREATED_TIMESTAMP TIMESTAMP NOT NULL,
|
CREATED_TIMESTAMP TIMESTAMP NOT NULL,
|
||||||
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
||||||
STATUS VARCHAR(50) NULL,
|
STATUS VARCHAR(50) NULL,
|
||||||
OPERATION_CODE VARCHAR(25) NOT NULL,
|
OPERATION_CODE VARCHAR(1000) NOT NULL,
|
||||||
PRIMARY KEY (ID)
|
PRIMARY KEY (ID)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ CREATE TABLE IF NOT EXISTS DM_OPERATION (
|
|||||||
CREATED_TIMESTAMP TIMESTAMP NOT NULL,
|
CREATED_TIMESTAMP TIMESTAMP NOT NULL,
|
||||||
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
RECEIVED_TIMESTAMP TIMESTAMP NULL,
|
||||||
STATUS VARCHAR(50) NULL,
|
STATUS VARCHAR(50) NULL,
|
||||||
OPERATION_CODE VARCHAR(25) NOT NULL,
|
OPERATION_CODE VARCHAR(1000) NOT NULL,
|
||||||
PRIMARY KEY (ID)
|
PRIMARY KEY (ID)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user