Re: Running code on Tomcat startup

2006-06-22 Thread Pid
lookup ServletContextListener Andrew Braae wrote: > I've handled this by using a servlet filter that intercepts all requests > (something like this in your web.xml file)... > > > Do Startup Filter > /* > > > Then inside the do.. method you can set up your object and attach to either

Re: Running code on Tomcat startup

2006-06-22 Thread Andrew Braae
I've handled this by using a servlet filter that intercepts all requests (something like this in your web.xml file)... Do Startup Filter /* Then inside the do.. method you can set up your object and attach to either a context such as your session or to the ServletContext (if you want

Running code on Tomcat startup

2006-06-22 Thread 0 8
Hello, I have a newbie Tomcat question. A search application I need to work with uses RMI. When I start Tomcat, is there a way I can run the code to create an object that I can reference in a JSP later? What I need to run is straight forward: ClientServices cs = com.mycompany.searchapp.Client