0 Replies Latest reply on Jul 3, 2013 5:00 AM by Romain Pelisse

    Using InfiniSpan provided inside AS 7 as a cache provider

    Romain Pelisse Apprentice

      Hi,

       

      My app is using Seam 2.3.1 with the cache provider abstraction provider by the framework. The implementation behind this used to be JBoss Cache, but as the app is migrated to JBoss AS 7, we would like to simply use the InfiniSpan coming with the server. The documentation indicates how one can the appropriate InfiniSpan config in the components.xml, but is there a way to reference simply an existing cache in JBoss AS 7 ? Something like that (conceptually):

       

      standalone.xml/domain.xml:

                    <cache-container name="appcache" default-cache="local-query" module="org.jboss.as.jpa.hibernate:4">

                         ...

                        <local-cache name="cache-for-my-app">

                            <transaction mode="NON_XA"/>

                            <eviction strategy="LRU" max-entries="10000"/>

                            <expiration max-idle="100000"/>

                        </local-cache>

       

      components.xml:

      <cache:infinispan-cache-provider name="cache-for-my-app"/> or <cache:infinispan-cache-provider name="appcache"/>

       

      This is way the cache can be complelty hand over people running the appserver (pretty much like JMS queues and DS configuration).