Re: Method or function to be executed on tomcat startup

2008-07-19 Thread Yves Glodt
On Friday 18 July 2008, Mikolaj Rydzewski wrote: Edoardo Panfili wrote: xx.ServerInit is a regular servlet the code is in init(ServletConfig config) method Use of ServletContextListener is preferred. That worked very well, thanks for the hint. Helpful article:

Re: Method or function to be executed on tomcat startup

2008-07-18 Thread Edoardo Panfili
Yves Glodt ha scritto: Hello, this is probably a FAQ, but I failed to find ti anyway... Where can I declare a static method that I want to be executed on tomcat or webapp startup? I use this in web.xml servlet descriptionEnv init/description servlet-nameServiziServerInit/servlet-name

Re: Method or function to be executed on tomcat startup

2008-07-18 Thread Mikolaj Rydzewski
Edoardo Panfili wrote: xx.ServerInit is a regular servlet the code is in init(ServletConfig config) method Use of ServletContextListener is preferred. To OP: put properties Map in ServletContext and it will be accessible for both servlets and JSPs (which are the servlets anyway). -- Mikolaj