[wildfly-dev] How to configure Wildfly to use the InMemorySessionManager instead of DistributableSessionManager?

Eric B ebenzacar at gmail.com
Tue Dec 19 11:38:39 EST 2017


Further to a previous post for session problems in my application, I
believe some of my issues relate to the DistributableSessions that are
being used by Wildfly.  However, in my configuration file, I have my web
cache defined as a local cache:



        <subsystem xmlns="urn:jboss:domain:infinispan:4.0">
            <cache-container name="server" aliases="singleton cluster"
default-cache="default" module="org.wildfly.clustering.server">
                <transport lock-timeout="60000"/>
                <replicated-cache name="default" mode="SYNC">
                    <transaction mode="BATCH"/>
                </replicated-cache>
            </cache-container>
            <cache-container name="web" default-cache="passivation"
module="org.wildfly.clustering.web.infinispan">
                <local-cache name="passivation">
                    <locking isolation="REPEATABLE_READ"/>
                    <transaction mode="BATCH"/>
                    <file-store passivation="true" purge="false"/>
                </local-cache>
                <local-cache name="persistent">
                    <locking isolation="REPEATABLE_READ"/>
                    <transaction mode="BATCH"/>
                    <file-store passivation="false" purge="false"/>
                </local-cache>
            </cache-container>
...
...


I see that undertow comes with an InMemorySessionManager, but not entirely
sure how to enable it.  Do I have to go through the effort of creating my
own ServletExtension and configuring it in the
META-INF/services/io.undertow.servlet.ServletExtension or is there an
out-of-the-box way of enable functionality that already exists via the
config file?

Thanks,

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20171219/6469196e/attachment.html 


More information about the wildfly-dev mailing list