Hi,

In order to disable the tomcat persistent session, I made the following change to the 
bundled tomcat configuration and it seems to work well for me.

In the file deploy/jbossweb-tomcat50.sar/server.xml,  change the existing 
DefaultContext element so that it looks as follows:       


  |             <DefaultContext cookies="true" crossContext="true" override="true">
  |             <Manager classname="org.apache.catalina.session.StandardManager" 
pathname="" />                                                        </DefaultContext>
  | 

Setting the pathname attribute to null tells the StandardManager  (default Tomcat 
session manager) that session persistence is not desired.  This is as per the Tomcat 
API documentation, see method setPathName of class StandardManager: 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/session/StandardManager.html#getPathname()

You may also want to note that prior to JBoss 3.2.5,  the server.xml configuration did 
not exist and the 
Tomcat server configuration parameters had to be defined in the jboss-service.xml  
file located in the META-INF directory of the bundle tomcat SAR.

Cheers,

   Piero

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

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


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to