Explorar el Código

remove jdbcTemplate in ThreadLocal after fetching it

sunyj hace 7 años
padre
commit
4057fbaebe
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/main/java/com/uas/ps/product/sync/WaitSyncHelper.java

+ 1 - 0
src/main/java/com/uas/ps/product/sync/WaitSyncHelper.java

@@ -85,6 +85,7 @@ public class WaitSyncHelper {
             batchSize = syncRepository.getBatchSize();
             syncRepository.unsetSessionVariable();
         } else {
+            jdbcTemplates.remove();
             batchSize = jdbcTemplate.execute(new CallableStatementCreator() {
                 @Override
                 public CallableStatement createCallableStatement(Connection connection) throws SQLException {