From 5deeb182e32e6bb9c9883bc38d03e6abe1d922aa Mon Sep 17 00:00:00 2001 From: Katia Aresti Date: Wed, 30 Nov 2022 23:01:29 +0100 Subject: [PATCH] Dev mode loading of URI --- .../infinispan/client/runtime/InfinispanClientProducer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java index f59c6dbd49ac9..16e1bfa30f575 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java @@ -233,7 +233,7 @@ private ConfigurationBuilder builderFromProperties(Properties properties) { String cacheName = cache.getKey(); InfinispanClientRuntimeConfig.RemoteCacheConfig remoteCacheConfig = cache.getValue(); if (remoteCacheConfig.configurationUri.isPresent()) { - URL configFile = InfinispanClientProducer.class.getClassLoader() + URL configFile = Thread.currentThread().getContextClassLoader() .getResource(remoteCacheConfig.configurationUri.get()); try { builder.remoteCache(cacheName).configurationURI(configFile.toURI());