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!
Your lookup-name should be: java:jboss/infinispan/cache/myCacheContainer/myCache