1 Reply Latest reply on Oct 10, 2006 5:36 AM by sathvath

    Disabling HttpSession persistence-jBoss 4.0.1sp1

    sathvath

      Version: jboss-4.0.1sp1

      I am trying to turn off http session persistence for all applications deployed on JBoss by placing a context.xml under deploy\jbossweb-tomcat50.sar as per this post:
      http://wiki.jboss.org/wiki/Wiki.jsp?page=DisableSessionPersistence

      But this doesn't seem to work. However, if I place this under WEB-INF for the target web application it works fine. But this would mean that we package this context.xml for each and every application. Instead I want http session persistence turned off at the server level.

      Interestingly, I observed that if I placed this context.xml under deploy\jbossweb-tomcat50.sar\ROOT.war\WEB-INF then http session persistence gets turned off at the server level.

      What is the recommended way to turn off http session persistence as default at the server level for all applications in jboss-4.0.1sp1? And is it safe to place the context.xml under deploy\jbossweb-tomcat50.sar\ROOT.war\WEB-INF ?

      Thanks.