<div dir="ltr">If you remove <distributable/> from your web.xml you should just get the InMemorySessionManager. <div><br></div><div>Stuart</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 20, 2017 at 4:29 AM, Eric B <span dir="ltr"><<a href="mailto:ebenzacar@gmail.com" target="_blank">ebenzacar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've continued digging into my issue and noticed that the default DistributableSessionManager uses the org.wildfly.clustering.<wbr>web.infinispan.session.<wbr>InfinispanSessionManager, which I guess comes from the module parameter in the cache-container definition.<div><br></div><div>Part of my problem is that I am trying to invalidate() the session returned by the SessionManager, but when I do a SessionManager.getSession(<wbr>sessionId), it returns an DistributableImmutableSession whose invalidate() method intentionally does nothing.</div><div><br>So how can I invalidate a session? Is there no way to invalidate a session by sessionId with the DistributableSessionManager? If so, how? If not, how do I define a SessionManager that would give me access that? </div><div><br></div><div>Thanks,</div><div><br>Eric</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 19, 2017 at 11:38 AM, Eric B <span dir="ltr"><<a href="mailto:ebenzacar@gmail.com" target="_blank">ebenzacar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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:<div><br></div><div><br><div><br></div><div><div> <subsystem xmlns="urn:jboss:domain:infini<wbr>span:4.0"></div><div> <cache-container name="server" aliases="singleton cluster" default-cache="default" module="org.wildfly.clustering<wbr>.server"></div><div> <transport lock-timeout="60000"/></div><div> <replicated-cache name="default" mode="SYNC"></div><div> <transaction mode="BATCH"/></div><div> </replicated-cache></div><div> </cache-container></div><div> <cache-container name="web" default-cache="passivation" module="org.wildfly.clustering<wbr>.web.infinispan"></div><div> <local-cache name="passivation"></div><div> <locking isolation="REPEATABLE_READ"/></div><div> <transaction mode="BATCH"/></div><div> <file-store passivation="true" purge="false"/></div><div> </local-cache></div><div> <local-cache name="persistent"></div><div> <locking isolation="REPEATABLE_READ"/></div><div> <transaction mode="BATCH"/></div><div> <file-store passivation="false" purge="false"/></div><div> </local-cache></div><div> </cache-container></div></div></div><div>...</div><div>...</div><div><br></div><br>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.<wbr>servlet.ServletExtension or is there an out-of-the-box way of enable functionality that already exists via the config file?<br><br>Thanks,<br><br>Eric</div>
</blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/wildfly-dev</a><br></blockquote></div><br></div>