0 Replies Latest reply on Nov 19, 2012 7:08 AM by Pratap V

    Problem in using CDI for Infinispan

    Pratap V Newbie

      I am using Infinispan cache in a Maven project. I am able to cache the data using Infinispan. I started using Infinispan CDI by adding interceptors in beans.xml along with supprting jars. I am trying to use @Cacheresult annotation for one method in my project. But the data is not being cached.


      @CacheResult(cacheName = "testCacheStore")

      public static String toCelsiusFormatted(float fahrenheit) {

        return NumberFormat.getInstance() .format((fahrenheit * 5 / 9) - 32)

        + " degrees Celsius";



      Here testCacheStore is cache configuration defined in infinispan-config.xml.