From 10ff4a0ab36859dd7b5b3c6b34b6a6b2540b6852 Mon Sep 17 00:00:00 2001 From: Pedro Ruivo Date: Mon, 19 Jun 2023 11:19:03 +0100 Subject: [PATCH] Allow any JGroups stack with --cache-stack Closes #21064 --- .../storage/legacy/infinispan/CacheManagerFactory.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/storage/legacy/infinispan/CacheManagerFactory.java b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/storage/legacy/infinispan/CacheManagerFactory.java index 2dcdb8929b..075f109f78 100644 --- a/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/storage/legacy/infinispan/CacheManagerFactory.java +++ b/quarkus/runtime/src/main/java/org/keycloak/quarkus/runtime/storage/legacy/infinispan/CacheManagerFactory.java @@ -129,9 +129,8 @@ public class CacheManagerFactory { private void configureTransportStack(ConfigurationBuilderHolder builder) { String transportStack = Configuration.getRawValue("kc.cache-stack"); - if (transportStack != null) { - builder.getGlobalConfigurationBuilder().transport().defaultTransport() - .addProperty("configurationFile", "default-configs/default-jgroups-" + transportStack + ".xml"); + if (transportStack != null && !transportStack.isBlank()) { + builder.getGlobalConfigurationBuilder().transport().defaultTransport().stack(transportStack); } } }