5 Replies Latest reply on Jan 4, 2016 5:51 AM by nick.sree

    How to remove infinispan http session handling ?

    nick.sree

      We are using wildfly 9.0.2 and we would like not to use infinispan for handling http session and replication, since we are using spring http session framework to keep session under the hood redis. Based on this i have a couple of question.

      How can we remove infinispan from handling http session in wildfly ?

      Is there any hidden impact on removing it ?

      Thanks in advance...

        • 1. Re: How to remove infinispan http session handling ?
          pferraro

          Infinispan is only used for distributable sessions.  If you don't use <distributable/> in your web.xml, then Infinispan will not handle web sessions.

          • 2. Re: How to remove infinispan http session handling ?
            nick.sree

            Thanks Paul, but we are not using <distributable/> in web.xml, I guess wildfly or undertow is using infinispan under the hood for some purpose. To materialize it, when we remove the following cache config from standalone.xml wildfly won't start.


            <cache-container name="web" default-cache="passivation" module="org.wildfly.clustering.web.infinispan">

                            <local-cache name="passivation">

                                <locking isolation="READ_COMMITTED"/>

                                <transaction locking="OPTIMISTIC" mode="BATCH"/>

                                <file-store passivation="true" purge="false"/>

                            </local-cache>

                            <local-cache name="persistent">

                                <locking isolation="READ_COMMITTED"/>

                                <transaction locking="OPTIMISTIC" mode="BATCH"/>

                                <file-store passivation="false" purge="false"/>

                            </local-cache>

                        </cache-container>

             

            I have asked this question because of this thread which i have created the same day :- Wildfly | Infinispan Warning

            • 3. Re: How to remove infinispan http session handling ?
              pferraro

              Infinispan is *only* used for web sessions if your web.xml uses <distributable/> - nor does Undertow use Infinispan in any capacity.

              As I mentioned on the other thread, there is probably some other component of your application that depends on Infinispan.

              • 4. Re: How to remove infinispan http session handling ?
                nick.sree

                As i have mentioned in the other thread, we are not using  neither <distributable/> nor @StatefuI anywhere in our project. I would like to hold this thread down, we can discuss it out in other thread, i guess you could help me to resolve this in other thread, thanks in advance..

                • 5. Re: How to remove infinispan http session handling ?
                  nick.sree