1 Reply Latest reply on Dec 18, 2018 9:39 PM by Paul Ferraro

    WildFly 15 - How to configure and use an Infinispan cache?

    Thomas Isaksen Newbie

      I've create a Cache Container containing a single local-cache but I can't really see any cache in the jndi tree and the lookup fails.

       

      Cache config in "standalone.xml"

       

      <cache-container name="myCacheContainer">

           <local-cache name="myCache"/>

      </cache-container>

       

      web.xml

       

      <resource-ref>
        <res-ref-name>myCache</res-ref-name>
        <lookup-name>java:jboss/infinispan/container/myCacheContainer/myCache</lookup-name>
      </resource-ref>

       

      @Resource(name="myCache")

      private Cache<String, String> myCache;

       

      I've tried to find examples but none are working. What am I doing wrong?

       

      Thanks!