Re: How to set global variable in Tomcat 5.5.17

2007-03-06 Thread tang jie
Kathy Lo: I think you can use the interface javax.servlet.ServletContextListener.In you implementation's method contextInitialized(ServletContextEvent sce),you can parse these configuration files and save the parsing result in the application scope,for example: sce.getServletContext().setAttrib

Re: How to set global variable in Tomcat 5.5.17

2007-03-06 Thread Jacob Rhoden
Instead of attaching information to a session context you can attach information to an application context, whats more, instead of loading the config each time a session is created, you can create what is called a "Lifecycle listener" which will load the configuraiton file once, when the applic

How to set global variable in Tomcat 5.5.17

2007-03-06 Thread Kathy Lo
Hi, I setup Tomcat 5.5.17 in Linux Fedora Core 4 and develop a Web Application under /webapps directory. I have so many configuration files that need to be loaded into my web application. These configuration files are in a self-defined format and I wrote some Java classes to parse these configur