[jboss-user] [J2EE Design Patterns] - Disabling HttpSession persistence-jBoss 4.0.1sp1

sathvath do-not-reply at jboss.com
Tue Oct 10 05:31:54 EDT 2006


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977168#3977168

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977168



More information about the jboss-user mailing list