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

RemoteCacheManagerAdmin should return always a RemoteCache

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 9.2.0.Final
    • None
    • None
    • None

      After ISPN-8808, we can create a cache using a configuration in the client side.

      In this case, when creating a cache with the configuration, RemoteCacheManagerAdmin is returning a BasicCache.

      The only way to get the RemoteCache is doing the following

            BasicCache<String, String> cache = cacheManager.administration()
                  .withFlags(CacheContainerAdmin.AdminFlag.PERMANENT)
                  .getOrCreateCache("test-5", config.build());
      
            RemoteCache<String, String> remoteCache = cacheManager.getCache("test-5");
      
            MyListener myListener = new MyListener();
            remoteCache.addClientListener(myListener);
      

      It will be good if RemoteCacheManagerAdmin always return a RemoteCache

              rh-ee-galder Galder ZamarreƱo
              dlovison@redhat.com Diego Lovison
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: