From 45d6c087735e8a083f5a569016352d61e49214a1 Mon Sep 17 00:00:00 2001 From: manoj Date: Wed, 8 Apr 2015 16:37:51 +0530 Subject: [PATCH] Remove connection from thread local at close --- .../core/operation/mgt/dao/OperationManagementDAOFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/OperationManagementDAOFactory.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/OperationManagementDAOFactory.java index 46b96e74f7..ed2066871e 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/OperationManagementDAOFactory.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/operation/mgt/dao/OperationManagementDAOFactory.java @@ -94,6 +94,7 @@ public class OperationManagementDAOFactory { } catch (SQLException e) { log.error("Error occurred while close the connection"); } + currentConnection.remove(); } public static void commitTransaction() throws OperationManagementDAOException {