0 Replies Latest reply on Jul 3, 2015 5:21 AM by Tomas S.

    Wildfly/Infinispan "module" property

    Tomas S. Newbie

      We are using Wildfly Infinispan subsystem and we are quite confused about the purpose of module property in the definition of container. I mean the following:


      <cache-container name="redirectCache" default-cache="default" module="deployment.OurPackage-ear-1.0-SNAPSHOT.ear">

          <transport lock-timeout="60000"/>

          <distributed-cache name="default" batching="true" jndi-name="java:jboss/infinispan/redirectCache" mode="ASYNC" owners="2" l1-lifespan="0"/>



      In Wildfly docs, there is: Defines the module whose class loader should be used when building this cache container.

      What does it exactly mean? So far it seems we are able to access the cache just from the application package that is referred in this property. If there is a different module or no module at all, then the application does not seem to start.

      Is it possible to share the cache across various applications? What should be in the module property then?