Allow any JGroups stack with --cache-stack

Closes #21064
This commit is contained in:
Pedro Ruivo 2023-06-19 11:19:03 +01:00 committed by Pedro Igor
parent 51b3906f9d
commit 10ff4a0ab3

View file

@ -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);
}
}
}