2 Replies Latest reply on Jun 12, 2018 12:58 PM by Paul Ferraro

    WF11 -> WF13, infinispan upgrade problem

    Hannes Bjurek Newbie

      We are trying to upgrade from wildfly 11 to wildfly 13 but can't understand how we should inject our caches that we have defined in the conf. The old conf looks like this:


      <cache-container name="latest_xx_status" default-cache="default" module="org.wildfly.clustering.server" jndi-name="java:jboss/infinispan/latest_xx_status">

         <transport lock-timeout="60000"/>

         <replicated-cache name="default" jndi-name="java:jboss/infinispan/latest_xx_status/cache" mode="ASYNC" remote-timeout="1000">

         <transaction locking="OPTIMISTIC" mode="NONE" stop-timeout="1000"/>

         <eviction strategy="NONE"/>




      And the code looks like this:


      @Resource(lookup = "java:jboss/infinispan/latest_xx_status/cache")


      However, with the 6.0 namespace of inifinspan we can no longer define jndi-name for the cache and we can't find it anyway in the jndi-tree. We can find the cache-container though... but we want to inject the cache directly.


      How should we resolve this?


      / Hannes