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

This commit is contained in:
2025-08-05 09:55:07 +02:00
2 changed files with 4 additions and 6 deletions

View File

@@ -181,12 +181,6 @@ public class MultiDBTransactionManager implements AutoCloseable {
return connection.prepareStatement(sql);
}
public PreparedStatement prepareStatementOnDistributore(String sql) throws Exception {
try (Connection connection = getDistributoreConnection()) {
return connection.prepareStatement(sql);
}
}
public List<Connection> getActiveConnections() throws SQLException {
return allConnections;
}

View File

@@ -81,6 +81,7 @@ public class SyncManager {
proceedSyncronization(entitySource, entityCloned, lastProfileUsed, multiDBTransactionManager);
distributoreConnection.commit();
} catch (Exception e) {
String subscriptor = null;
@@ -104,6 +105,9 @@ public class SyncManager {
e = new SyncException(e, profileDb);
}
distributoreConnection.rollback();
throw e;
}
}