You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ivan <xh...@gmail.com> on 2009/12/17 04:15:51 UTC
The time to call populateSessionTrackingModes() in ApplicationContext
Hi,
Currently, the populateSessionTrackingModes() method is called in the
constructor of ApplicationContext, but the codes in the
populateSessionTrackingModes() would check the parent of StandardContext.
I wonder whether it would be more reasonable to add an init method for the
ApplicationContext, and call the ApplicationContext.init while starting
StandardContext. For while the ApplicationContext is created via
StandardContext.getServletConext() method, the StandardContext may not be
added to the whole Tomcat tree.
Any comment ? Thanks !
--
Ivan