Merge branch 'master' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-04-23 09:59:37 +02:00
2 changed files with 6 additions and 2 deletions

View File

@@ -129,13 +129,17 @@ public class BasicConnectionPool {
// poolLock.lock(); // poolLock.lock();
try { try {
if (!connectionPool.containsKey(dbName) || connectionPool.get(dbName).isEmpty()) { if (!connectionPool.containsKey(dbName)) {
return createExtraConnection(profileName); return createExtraConnection(profileName);
} }
List<DataSource> pool = connectionPool.get(dbName); List<DataSource> pool = connectionPool.get(dbName);
List<DataSource> used = usedConnections.get(dbName); List<DataSource> used = usedConnections.get(dbName);
if( pool.isEmpty() ) {
return createExtraConnection(profileName);
}
DataSource ds = pool.remove(0); DataSource ds = pool.remove(0);
if (ds.isClosed()) { if (ds.isClosed()) {

View File

@@ -907,7 +907,7 @@ public class MesProductionServiceV2 {
String key = codJfas; String key = codJfas;
if (!UtilityString.isNullOrEmpty(codJfas)) { if (!UtilityString.isNullOrEmpty(codJfas)) {
String setup = setupGest.getSetup(gestName, section, key); String setup = setupGest.getSetup(multiDBTransactionManager.getPrimaryConnection(), gestName, section, key);
if (!UtilityString.isNullOrEmpty(setup)) { if (!UtilityString.isNullOrEmpty(setup)) {
ObjectMapper mapper = new ObjectMapper(); ObjectMapper mapper = new ObjectMapper();