-
1. Re: Http Session is not destroyed when redeploying war-archi
zarni Aug 14, 2004 4:49 AM (in response to zarni)I did some research and found out that tomcat 5 is using a Manager to persist
http sessions. All attributes put in the session should be java.io.Serializable.
I just don't wont this,
so is there a way to disable session persistence in tomcat 5 and jboss3.2.5?
thanks -
2. Re: Http Session is not destroyed when redeploying war-archi
trickal Oct 19, 2004 6:06 AM (in response to zarni)Hi Zarni,
maybe the following links are helpful for your research:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=51689
http://sourceforge.net/tracker/index.php?func=detail&aid=986585&group_id=22866&atid=376687
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
Thomas -
3. Re: Http Session is not destroyed when redeploying war-archi
trickal Oct 19, 2004 6:20 AM (in response to zarni)Hi Zarni,
i just stumbled accross some additional information. The patch of Mikko Koponen was integrated in JBoss 3.2.6RC1:
http://sourceforge.net/docman/display_doc.php?docid=23847&group_id=22866
If you change to JBoss 3.2.6 you may configure a session manager for your web application in WEB-INF/context.xml. Look here for information about how to do this:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
Thomas -
4. Re: Http Session is not destroyed when redeploying war-archi
trickal Oct 19, 2004 8:21 AM (in response to zarni)Hi Zarni,
here is an example for WEB-INF/context.xml that disables session persistence:<Context path=""> <Manager className="org.apache.catalina.session.StandardManager" pathname="" /> </Context>
Thomas -
5. Re: Http Session is not destroyed when redeploying war-archi
zarni Oct 19, 2004 9:43 AM (in response to zarni)Thank you trickal!
I have been using jboss3.2.6 for a long time now, and it is working very fine with the
default context manager (I made all my objects serializable, and the sessions persist fine without any errors). But your reply gave me some ideas on doing some custom
context managers that will simplify the development of my web apps (custom logging, login, custom resources and stuff).
Thanks again!