davsclaus commented on code in PR #31305:
URL: https://github.com/apache/camel/pull/31305#discussion_r4809669765


##########
components/camel-infinispan/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/remote/InfinispanRemoteManager.java:
##########
@@ -84,6 +84,10 @@ public void doStart() throws Exception {
             // If the hosts properties has been configured, it means we want to
             // connect to a remote cache so set-up a RemoteCacheManager
             if (cacheContainer == null) {
+                if (ObjectHelper.isEmpty(configuration.getHosts())) {

Review Comment:
   The message already names all three options ("hosts is required when 
cacheContainer and cacheContainerConfiguration are not set"), so no change 
needed.
   
   _Claude Code on behalf of davsclaus_



##########
components/camel-infinispan/camel-infinispan/src/main/java/org/apache/camel/component/infinispan/remote/InfinispanRemoteAggregationRepository.java:
##########
@@ -86,18 +89,17 @@ protected void doStart() throws Exception {
         super.doStart();
 
         InfinispanRemoteConfiguration conf = configuration != null ? 
configuration : new InfinispanRemoteConfiguration();
-
-        if (conf.getCacheContainerConfiguration() == null) {
-            conf.setCacheContainerConfiguration(
-                    new ConfigurationBuilder()
-                            .addContextInitializer(new 
DefaultExchangeHolderContextInitializer())
-                            .build());
-        } else {
-            conf.setCacheContainerConfiguration(
-                    new ConfigurationBuilder()
-                            .read(conf.getCacheContainerConfiguration(), 
Combine.DEFAULT)
-                            .addContextInitializer(new 
DefaultExchangeHolderContextInitializer())
-                            .build());
+        conf.setEmbeddingStoreEnabled(false);

Review Comment:
   Keeping `embeddingStoreEnabled=true` as the `InfinispanRemoteConfiguration` 
default is intended: endpoints use the embedding store when 
langchain4j-embeddings is present. Only the repositories and the cluster 
configuration turn it off, so no change needed.
   
   _Claude Code on behalf of davsclaus_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to