Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-6563

If Infinispan is used as a provider for JCache using the remote approach it will not pick up the hotrod-client.properties

    XMLWordPrintable

Details

    Description

      If an application use the javax.cache JCache API together with the infinispan-jcache-remote library the CacheManager is created with defaults.
      But it is expected that the hotrod-client.properties are used to configure the remote connection.

      The code is like this:
      {
      import javax.cache.*;
      ...
      CachingProvider jcacheProvider = Caching.getCachingProvider();
      CacheManager cacheManager = jcacheProvider.getCacheManager();
      }

      The org.infinispan.jcache.AbstractJCachingProvider use the org.infinispan.jcache.remote.CacheManger but does not provide properties.

      Therefor the CacheManager is constructed with the default of localhost:11222 as the configuration is not loaded from the properties file.

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder ZamarreƱo
              rhn-support-wfink Wolf Fink
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: