From 9796e69d8d4d0ca04992fd252cef7a6813f3b9ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Barto=C5=A1?= Date: Thu, 16 Mar 2023 16:19:15 +0100 Subject: [PATCH] Change default transaction type to JTA --- .../keycloak/quarkus/deployment/KeycloakProcessor.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/KeycloakProcessor.java b/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/KeycloakProcessor.java index de3d65afa9..09703ea9c2 100644 --- a/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/KeycloakProcessor.java +++ b/quarkus/deployment/src/main/java/org/keycloak/quarkus/deployment/KeycloakProcessor.java @@ -313,13 +313,7 @@ class KeycloakProcessor { final Optional defaultSchema = getOptionalKcValue(DatabaseOptions.DB_SCHEMA.getKey()); defaultSchema.ifPresent(ds -> unitProperties.setProperty(AvailableSettings.DEFAULT_SCHEMA, ds)); - final Optional transactionJtaEnabled = getOptionalKcBooleanValue(TransactionOptions.TRANSACTION_JTA_ENABLED.getKey()); - if (transactionJtaEnabled.isPresent() && !transactionJtaEnabled.get()) { - unitProperties.setProperty(AvailableSettings.JAKARTA_TRANSACTION_TYPE, PersistenceUnitTransactionType.RESOURCE_LOCAL.name()); - } else { - // will happen for both "enabled" and "xa" - unitProperties.setProperty(AvailableSettings.JAKARTA_TRANSACTION_TYPE, PersistenceUnitTransactionType.JTA.name()); - } + unitProperties.setProperty(AvailableSettings.JAKARTA_TRANSACTION_TYPE, PersistenceUnitTransactionType.JTA.name()); final Optional lockTimeoutConfigValue = getOptionalValue("spi-map-storage-jpa-lock-timeout"); lockTimeoutConfigValue.ifPresent(v -> unitProperties.setProperty(AvailableSettings.JAKARTA_LOCK_TIMEOUT, v));